]> git.parisson.com Git - teleforma.git/commitdiff
fix bad id
authoryomguy <yomguy@parisson.com>
Mon, 23 Jul 2012 01:00:37 +0000 (03:00 +0200)
committeryomguy <yomguy@parisson.com>
Mon, 23 Jul 2012 01:00:37 +0000 (03:00 +0200)
teleforma/templatetags/teleforma_tags.py

index c120d313562329528c40c024a809516a262d84be..1e0b96387f9af9049a3beaa7104091b41f78e423 100644 (file)
@@ -178,8 +178,7 @@ def get_audio_id(media):
     for m in medias:
         if 'audio' in m.mime_type:
             return m.id
-        else:
-            return ''
+    return
 
 @register.filter
 def get_video_id(media):