From 45ac409c7861a99526e314dfa5f358e49208c0ab Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Wed, 6 Apr 2011 23:28:28 +0200 Subject: time slot choices are now limited in admin. diff --git a/program/models.py b/program/models.py index 70347b0..5f0f835 100644 --- a/program/models.py +++ b/program/models.py @@ -271,7 +271,7 @@ class Note(models.Model): (1, _("Recommendation")), (2, _("Repetition")), ) - timeslot = models.OneToOneField(TimeSlot, limit_choices_to={'start__gte': datetime.now}, verbose_name=_("Time slot")) + timeslot = models.OneToOneField(TimeSlot, verbose_name=_("Time slot")) owner = models.ForeignKey(User, related_name='notes', verbose_name=_("Owner")) title = models.CharField(_("Title"), max_length=128) content = models.TextField(_("Content")) -- cgit v0.10.2