Skip to content
Snippets Groups Projects
Commit 45ac409c authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

time slot choices are now limited in admin.

parent 649ee019
No related branches found
No related tags found
No related merge requests found
...@@ -271,7 +271,7 @@ class Note(models.Model): ...@@ -271,7 +271,7 @@ class Note(models.Model):
(1, _("Recommendation")), (1, _("Recommendation")),
(2, _("Repetition")), (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")) owner = models.ForeignKey(User, related_name='notes', verbose_name=_("Owner"))
title = models.CharField(_("Title"), max_length=128) title = models.CharField(_("Title"), max_length=128)
content = models.TextField(_("Content")) content = models.TextField(_("Content"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment