2011-11-18 13:01:06 +00:00
|
|
|
from django.db import models
|
|
|
|
|
2013-11-02 21:34:05 +00:00
|
|
|
|
2011-11-18 13:01:06 +00:00
|
|
|
class Event(models.Model):
|
|
|
|
dt = models.DateTimeField()
|
|
|
|
|
2013-11-02 21:34:05 +00:00
|
|
|
|
2011-11-25 09:25:43 +00:00
|
|
|
class MaybeEvent(models.Model):
|
|
|
|
dt = models.DateTimeField(blank=True, null=True)
|
|
|
|
|
2013-11-02 21:34:05 +00:00
|
|
|
|
2012-02-22 19:40:27 +00:00
|
|
|
class Session(models.Model):
|
|
|
|
name = models.CharField(max_length=20)
|
|
|
|
|
2013-11-02 21:34:05 +00:00
|
|
|
|
2012-02-22 19:40:27 +00:00
|
|
|
class SessionEvent(models.Model):
|
|
|
|
dt = models.DateTimeField()
|
|
|
|
session = models.ForeignKey(Session, related_name='events')
|
|
|
|
|
2013-11-02 21:34:05 +00:00
|
|
|
|
2011-11-18 13:01:06 +00:00
|
|
|
class Timestamp(models.Model):
|
|
|
|
created = models.DateTimeField(auto_now_add=True)
|
|
|
|
updated = models.DateTimeField(auto_now=True)
|
2012-05-01 08:40:25 +00:00
|
|
|
|
2013-11-02 21:34:05 +00:00
|
|
|
|
2012-05-01 08:40:25 +00:00
|
|
|
class AllDayEvent(models.Model):
|
|
|
|
day = models.DateField()
|