summaryrefslogtreecommitdiff
path: root/program/models.py
diff options
context:
space:
mode:
authorJohannes Raggam <raggam-nl@adm.at>2011-07-07 14:15:26 (GMT)
committerJohannes Raggam <raggam-nl@adm.at>2011-07-07 14:15:26 (GMT)
commit7fedd9d25afc2267c23121770d7aef17e9141f0d (patch)
tree13b6455d004067b8e365fde9a2f9f1ad30a5e6fa /program/models.py
parentb8192f77d559684825af175dd31ce18c6c38096c (diff)
parentf77ca392735c58e12f3fa5e4f7badf4c6e13f7ae (diff)
Merge branch 'master' of github.com:nnrcschmdt/helsinki
Diffstat (limited to 'program/models.py')
-rw-r--r--program/models.py4
1 files changed, 2 insertions, 2 deletions
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)