From df277467dab4ef99ecbe7c07c2ddb340dedb7b94 Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Mon, 21 Mar 2011 22:20:31 +0100 Subject: modified Note: made start field unique. 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) -- cgit v0.10.2