]> git.0d.be Git - django-panik-emissions.git/commitdiff
keep full nonstop object available in programs
authorFrédéric Péters <fpeters@0d.be>
Thu, 28 Jun 2018 05:18:51 +0000 (07:18 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 28 Jun 2018 05:18:51 +0000 (07:18 +0200)
emissions/utils.py

index b2ac34839b76719a8acc55e40b765561cbc9a438..68655679d0fa38cd5d31566ed3c670738dde115c 100644 (file)
@@ -191,9 +191,10 @@ def period_program(date_start, date_end, prefetch_sounds=True,
             self.title = nonstop.title
             self.slug = nonstop.slug
             self.label = self.title
+            self.nonstop = nonstop
 
         def __repr__(self):
-            return repr(self.label)
+            return '<Nonstop Slot %r>' % self.label
 
         def get_duration(self):
             # fake duration