mirror of
https://github.com/django/django.git
synced 2024-12-26 02:56:25 +00:00
8b53616198
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17576 bcc190cf-cafb-0310-a4f2-bffc1f526a37
19 lines
515 B
Python
19 lines
515 B
Python
from django.db import models
|
|
|
|
class Event(models.Model):
|
|
dt = models.DateTimeField()
|
|
|
|
class MaybeEvent(models.Model):
|
|
dt = models.DateTimeField(blank=True, null=True)
|
|
|
|
class Session(models.Model):
|
|
name = models.CharField(max_length=20)
|
|
|
|
class SessionEvent(models.Model):
|
|
dt = models.DateTimeField()
|
|
session = models.ForeignKey(Session, related_name='events')
|
|
|
|
class Timestamp(models.Model):
|
|
created = models.DateTimeField(auto_now_add=True)
|
|
updated = models.DateTimeField(auto_now=True)
|