hotfix_geometry_save_race_condition #246

Merged
mpeltriaux merged 2 commits from hotfix_geometry_save_race_condition into master 2022-11-23 16:06:51 +01:00
Showing only changes of commit 79fd3ad29d - Show all commits

View File

@ -136,8 +136,6 @@ class AbstractModelAPISerializer:
geometry = geos.fromstr(geojson) geometry = geos.fromstr(geojson)
if geometry.srid != DEFAULT_SRID_RLP: if geometry.srid != DEFAULT_SRID_RLP:
geometry.transform(DEFAULT_SRID_RLP) geometry.transform(DEFAULT_SRID_RLP)
if geometry.empty:
geometry = None
return geometry return geometry
def _get_obj_from_db(self, id, user): def _get_obj_from_db(self, id, user):