Compare commits
2 Commits
56f58284f9
...
528f2145a4
Author | SHA1 | Date | |
---|---|---|---|
528f2145a4 | |||
5c21932511 |
@ -311,6 +311,9 @@ class SimpleGeomForm(BaseForm):
|
||||
|
||||
# Get geojson from form
|
||||
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)
|
||||
|
||||
# Write submitted data back into form field to make sure invalid geometry
|
||||
|
Loading…
Reference in New Issue
Block a user