summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-01-27 17:09:29 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-01-27 17:09:29 +0100
commitb2f3e5afc9524b2dace4c8cc5466365bf47b15eb (patch)
tree8fb531d2e540432dc94ece6a66ea66d0bd50d15f /ishtar_common
parent45180c1f4f2e75b38b57d581f454b170ca68cfe1 (diff)
downloadIshtar-b2f3e5afc9524b2dace4c8cc5466365bf47b15eb.tar.bz2
Ishtar-b2f3e5afc9524b2dace4c8cc5466365bf47b15eb.zip
get item: fix link generation for https
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/views_item.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py
index fbac512cd..8af79c6fa 100644
--- a/ishtar_common/views_item.py
+++ b/ishtar_common/views_item.py
@@ -319,9 +319,8 @@ def _get_values(request, val):
if callable(v):
v = v()
if hasattr(v, 'url'):
- v = request.is_secure() and \
- 'https' or 'http' + '://' + \
- request.get_host() + v.url
+ v = (request.is_secure() and
+ 'https' or 'http') + '://' + request.get_host() + v.url
new_vals.append(v)
return new_vals