]> git.parisson.com Git - teleforma.git/commitdiff
fix get_host
authoryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 20:00:37 +0000 (22:00 +0200)
committeryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 20:00:37 +0000 (22:00 +0200)
teleforma/templatetags/teleforma_tags.py

index 2d60abadbe748475dcf80bda9f55f9ff701e3725..51b3d5fa1718bf2454e805262cb582dbacf71cfc 100644 (file)
@@ -192,7 +192,7 @@ def get_video_id(media):
 def get_host(url, host):
     u = urlparse(url)
     if host == '127.0.0.1' or host == 'localhost':
-        u['netloc'] = host
+        u.netloc = host
         return u.geturl()
     else:
         return url