Stream.__unicode__

This commit is contained in:
j 2010-09-15 17:04:40 +02:00
parent 9a47b5eef4
commit fb6ef55424

View file

@ -891,6 +891,9 @@ class Stream(models.Model):
self.available=True self.available=True
self.save() self.save()
def __unicode__(self):
return u"%s (%s)" % (self.profile, self.movie)
def save(self, *args, **kwargs): def save(self, *args, **kwargs):
if self.video and not self.info: if self.video and not self.info:
self.info = ox.avinfo(self.video.path) self.info = ox.avinfo(self.video.path)