diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-06-21 18:27:46 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-06-21 18:27:46 +0200 |
commit | c9cda5e8a6feb8447243c0bd38e57a219d7d478e (patch) | |
tree | ad18ce8837490592d2c76c0940c1c199769474eb | |
parent | 9df8d80d695dc98318aad7ffdc280b9b13d67542 (diff) | |
download | Ishtar-c9cda5e8a6feb8447243c0bd38e57a219d7d478e.tar.bz2 Ishtar-c9cda5e8a6feb8447243c0bd38e57a219d7d478e.zip |
templatetags: fix url fields generation
-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} |