From: yomguy Date: Thu, 19 Jul 2012 20:00:37 +0000 (+0200) Subject: fix get_host X-Git-Tag: 0.7.1~5^2~8 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c52980b3006c9b581b11eb1f866bee520cad67c3;p=teleforma.git fix get_host --- diff --git a/teleforma/templatetags/teleforma_tags.py b/teleforma/templatetags/teleforma_tags.py index 2d60abad..51b3d5fa 100644 --- a/teleforma/templatetags/teleforma_tags.py +++ b/teleforma/templatetags/teleforma_tags.py @@ -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