From fe8580ab0e4a765110c1b73f8398fa631448e9d3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 2 Nov 2021 16:18:47 +0100 Subject: Search: fix url for person and organization (refs #5201) --- ishtar_common/views_item.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ishtar_common/views_item.py') diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py index 9543d74f5..e9d28e306 100644 --- a/ishtar_common/views_item.py +++ b/ishtar_common/views_item.py @@ -491,7 +491,8 @@ def _get_values(request, val): if callable(v): v = v() try: - if hasattr(v, "url") and v.url: + if not isinstance(v, (models.Person, models.Organization)) and\ + hasattr(v, "url") and v.url: v = ( (request.is_secure() and "https" or "http") + "://" -- cgit v1.2.3