summaryrefslogtreecommitdiff
path: root/ishtar_common/views_item.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/views_item.py')
-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