master #172

Merged
mpeltriaux merged 35 commits from master into Docker 2022-06-02 08:53:33 +02:00
Showing only changes of commit 5c21932511 - Show all commits

View File

@ -311,6 +311,9 @@ class SimpleGeomForm(BaseForm):
# Get geojson from form # Get geojson from form
geom = self.data["geom"] geom = self.data["geom"]
if geom is None or len(geom) == 0:
# empty geometry is a valid geometry
return is_valid
geom = json.loads(geom) geom = json.loads(geom)
# Write submitted data back into form field to make sure invalid geometry # Write submitted data back into form field to make sure invalid geometry