From fb6ef554245ef07cd562d1ff4e93b708d60c74bd Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 15 Sep 2010 17:04:40 +0200 Subject: [PATCH] Stream.__unicode__ --- pandora/backend/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandora/backend/models.py b/pandora/backend/models.py index 918b19c..9b66c46 100644 --- a/pandora/backend/models.py +++ b/pandora/backend/models.py @@ -891,6 +891,9 @@ class Stream(models.Model): self.available=True self.save() + def __unicode__(self): + return u"%s (%s)" % (self.profile, self.movie) + def save(self, *args, **kwargs): if self.video and not self.info: self.info = ox.avinfo(self.video.path)