diff options
| -rw-r--r-- | CHANGES-DEV.md | 1 | ||||
| -rw-r--r-- | ishtar_common/views_item.py | 3 | 
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGES-DEV.md b/CHANGES-DEV.md index 7465816e8..5159f6ff0 100644 --- a/CHANGES-DEV.md +++ b/CHANGES-DEV.md @@ -5,3 +5,4 @@ Ishtar changelog  - Context record: bulk update  ### Bugs ### +- Search: fix url for person and organization 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")                      + "://"  | 
