]> git.parisson.com Git - telemeta.git/commitdiff
fix format
authoryomguy <yomguy@parisson.com>
Thu, 24 May 2012 13:12:29 +0000 (15:12 +0200)
committeryomguy <yomguy@parisson.com>
Thu, 24 May 2012 13:12:29 +0000 (15:12 +0200)
telemeta/models/format.py

index 6ffc22ea6acdddb7f760eef170bd0c51a374b615..7599e1f6833ffe72cf8ca0f8012703d95bb5c9a3 100644 (file)
@@ -85,10 +85,10 @@ class Format(ModelCore):
         verbose_name = _('format')
 
     def __unicode__(self):
-        if self.original_format:
-            return self.original_format
+        if self.physical_format:
+            return self.physical_format.value
         else:
-            return 'unknown'
+            return 'Unknown'
 
     @property
     def public_id(self):