Stream.__unicode__

This commit is contained in:
j 2010-09-15 17:04:40 +02:00
parent 9a47b5eef4
commit fb6ef55424
1 changed files with 3 additions and 0 deletions

View File

@ -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)