summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-03-21 21:20:31 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-03-21 21:20:31 (GMT)
commitdf277467dab4ef99ecbe7c07c2ddb340dedb7b94 (patch)
treea00495a7cf015fb0b52b85f2c8800e0df0b23eee /program
parent7f8838be1c05cceee384b11899f88804e02e630c (diff)
modified Note: made start field unique.
Diffstat (limited to 'program')
-rw-r--r--program/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/models.py b/program/models.py
index 891f0b7..b73e7ac 100644
--- a/program/models.py
+++ b/program/models.py
@@ -241,7 +241,7 @@ class TimeSlotManager(models.Manager):
class TimeSlot(models.Model):
programslot = models.ForeignKey(ProgramSlot, related_name='timeslots', verbose_name=_("Program slot"))
- start = models.DateTimeField(_("Start time"))
+ start = models.DateTimeField(_("Start time"), unique=True)
end = models.DateTimeField(_("End time"))
show = models.ForeignKey(Show, editable=False)