From 46fcb2d2354d71b53fd0f72af62b224e50370211 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 12 Dec 2019 18:34:43 +0100 Subject: Add URL to organization --- ishtar_common/views_item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/views_item.py') diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py index 3aba5bb9a..88cd70b43 100644 --- a/ishtar_common/views_item.py +++ b/ishtar_common/views_item.py @@ -366,7 +366,7 @@ def _get_values(request, val): if callable(v): v = v() try: - if hasattr(v, 'url'): + if hasattr(v, 'url') and v.url: v = (request.is_secure() and 'https' or 'http') + '://' + request.get_host() + v.url except ValueError: -- cgit v1.2.3