From ca4f77317652c6bce113514e5dc069ba84311e6f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 27 Jan 2019 17:09:29 +0100 Subject: get item: fix link generation for https --- ishtar_common/views_item.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ishtar_common') 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 -- cgit v1.2.3