diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-04-06 21:28:28 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2011-04-06 21:28:28 (GMT) |
commit | 45ac409c7861a99526e314dfa5f358e49208c0ab (patch) | |
tree | 5e57684002759e51902fae852c67fe66dd62bd39 /program | |
parent | 649ee0193efeb9af3250745d0c836c5a0e8c4d93 (diff) |
time slot choices are now limited in admin.
Diffstat (limited to 'program')
-rw-r--r-- | program/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
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")) |