diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-06-21 18:30:02 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-06-21 18:30:02 +0200 |
commit | 17b5aa3a3c11c2520c2117efa378e039788b3066 (patch) | |
tree | cc35ae212bbdbfb5422490a465140ad7b5ad389e | |
parent | 510f603f7732772cc097442706aece751632fccc (diff) | |
parent | 8b3df5517e610cf7f1bf4f6ffe537d887997aa1b (diff) | |
download | Ishtar-17b5aa3a3c11c2520c2117efa378e039788b3066.tar.bz2 Ishtar-17b5aa3a3c11c2520c2117efa378e039788b3066.zip |
Merge branch 'master' into master-gis
-rw-r--r-- | ishtar_common/templatetags/window_field.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/templatetags/window_field.py b/ishtar_common/templatetags/window_field.py index 73e944c0f..2a58d844a 100644 --- a/ishtar_common/templatetags/window_field.py +++ b/ishtar_common/templatetags/window_field.py @@ -24,7 +24,7 @@ def field_url(caption, link, link_name='', li=False): link = link.strip() if not link: return u'' - if not link.startswith('http://') or not link.startswith('https://'): + if not link.startswith('http://') and not link.startswith('https://'): link = 'http://' + link return {'caption': caption, 'link': link, "link_name": link_name, 'li': li} |