]> git.parisson.com Git - telemeta.git/commitdiff
fix
authoryomguy <yomguy@parisson.com>
Wed, 2 May 2012 14:33:35 +0000 (16:33 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 2 May 2012 14:33:35 +0000 (16:33 +0200)
telemeta/models/format.py
telemeta/views/base.py

index 06aa7b08a921ff3d44e5675ae2ab70f812272b98..54c6747bbe59c21f63091ef4f8a2d3455b695c44 100644 (file)
@@ -82,7 +82,7 @@ class Format(ModelCore):
         verbose_name = _('format')
 
     def __unicode__(self):
-        return self.original_code
+        return self.original_format
 
     @property
     def public_id(self):
index d6a32991c8882d9b85abd29ed664af6c157fff73..1d80d0a025d6163887bcebacf5c16bd5bb69e94c 100644 (file)
@@ -659,7 +659,7 @@ class ItemView(object):
         else:
             last_revision = None
 
-        physical_format = item.original_format.original_format
+        physical_format = item.original_format
 
         return render(request, template,
                     {'item': item, 'export_formats': formats,