Fix for testing

This commit is contained in:
mpeltriaux 2023-11-21 14:03:38 +01:00
parent 92797f4ea0
commit a2389edcc1

View File

@ -711,7 +711,11 @@ class GeoReferencedMixin(models.Model):
Returns: Returns:
""" """
try:
entry_has_geometry = not self.geometry.geom.empty entry_has_geometry = not self.geometry.geom.empty
except AttributeError:
entry_has_geometry = False
if entry_has_geometry: if entry_has_geometry:
link = LANIS_LINK_TEMPLATE.format( link = LANIS_LINK_TEMPLATE.format(
self.get_lanis_layer_name(), self.get_lanis_layer_name(),