From 959825581813cb5899c8753ac4879839985b01a6 Mon Sep 17 00:00:00 2001 From: xaralis <filip.varecha@fragaria.cz> Date: Wed, 18 May 2022 17:02:49 +0100 Subject: [PATCH] feat(district): show link to geo feature detail page only if there is some content available --- district/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/district/models.py b/district/models.py index f6195c44..8beb27b9 100644 --- a/district/models.py +++ b/district/models.py @@ -1287,7 +1287,7 @@ def _build_geojson_feature_with_props(feature, request): "image": feature.image.get_rendition("fill-800x450|jpegquality-80").url if feature.image else None, - "link": feature.get_url(request), + "link": feature.get_url(request) if feature.content else None, "category": feature.category.name, } return fwp -- GitLab