From 67e50e0a53c78897edd515e6753511bb540f107b Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Sun, 3 Jul 2011 11:44:29 +0200 Subject: added missing related names. diff --git a/program/models.py b/program/models.py index a63fcc7..8f2e50b 100644 --- a/program/models.py +++ b/program/models.py @@ -262,7 +262,7 @@ class TimeSlot(models.Model): programslot = models.ForeignKey(ProgramSlot, related_name='timeslots', verbose_name=_("Program slot")) start = models.DateTimeField(_("Start time"), unique=True) end = models.DateTimeField(_("End time")) - show = models.ForeignKey(Show, editable=False) + show = models.ForeignKey(Show, editable=False, related_name='timeslots') objects = TimeSlotManager() @@ -298,7 +298,7 @@ class Note(models.Model): status = models.IntegerField(_("Status"), choices=STATUS_CHOICES, default=1) cba_entry_id = models.IntegerField(_("CBA entry ID"), blank=True, null=True) start = models.DateTimeField(editable=False) - show = models.ForeignKey(Show, editable=False) + show = models.ForeignKey(Show, editable=False, related_name='notes') created = models.DateTimeField(auto_now_add=True, editable=False) last_updated = models.DateTimeField(auto_now=True, editable=False) -- cgit v0.10.2