~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to tests/modeltests/timezones/models.py

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2012-03-31 14:48:00 UTC
  • mfrom: (1.2.12)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: package-import@ubuntu.com-20120331144800-6a44u7d8z6pd2br4
Tags: upstream-1.4
Import upstream version 1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.db import models
 
2
 
 
3
class Event(models.Model):
 
4
    dt = models.DateTimeField()
 
5
 
 
6
class MaybeEvent(models.Model):
 
7
    dt = models.DateTimeField(blank=True, null=True)
 
8
 
 
9
class Session(models.Model):
 
10
    name = models.CharField(max_length=20)
 
11
 
 
12
class SessionEvent(models.Model):
 
13
    dt = models.DateTimeField()
 
14
    session = models.ForeignKey(Session, related_name='events')
 
15
 
 
16
class Timestamp(models.Model):
 
17
    created = models.DateTimeField(auto_now_add=True)
 
18
    updated = models.DateTimeField(auto_now=True)