Fix for testing
This commit is contained in:
parent
98a6f19a16
commit
2bcac86249
@ -711,7 +711,11 @@ class GeoReferencedMixin(models.Model):
|
||||
Returns:
|
||||
|
||||
"""
|
||||
entry_has_geometry = not self.geometry.geom.empty
|
||||
try:
|
||||
entry_has_geometry = not self.geometry.geom.empty
|
||||
except AttributeError:
|
||||
entry_has_geometry = False
|
||||
|
||||
if entry_has_geometry:
|
||||
link = LANIS_LINK_TEMPLATE.format(
|
||||
self.get_lanis_layer_name(),
|
||||
|
Loading…
Reference in New Issue
Block a user