]> git.parisson.com Git - teleforma.git/commitdiff
bugfix
authoryomguy <yomguy@parisson.com>
Wed, 25 Jul 2012 02:43:47 +0000 (04:43 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 25 Jul 2012 02:43:47 +0000 (04:43 +0200)
teleforma/templatetags/teleforma_tags.py

index 1e0b96387f9af9049a3beaa7104091b41f78e423..c2ec5059678c73a4adc3ff6bd3f60e9eb6fa7151 100644 (file)
@@ -186,8 +186,7 @@ def get_video_id(media):
     for m in medias:
         if 'video' in m.mime_type:
             return m.id
-        else:
-            return ''
+    return
 
 @register.filter
 def get_host(url, host):