# Geometry error message fix
* fixes bug where errors on geometry form were not rendered properly * fixes bug where invalid geometry was written as read-only back into form (could not be corrected by user) * adds explanatory comments to SimpleGeomForm is_valid() checks * reorders code snippets for better understanding * adds correcting logic to _set_geojson_properties() in case of missing properties element
This commit is contained in:
@@ -13,9 +13,9 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if geom_form.geom.errors %}
|
||||
{% if geom_form.output.errors %}
|
||||
<div class="alert-danger p-2">
|
||||
{% for error in geom_form.geom.errors %}
|
||||
{% for error in geom_form.output.errors %}
|
||||
<strong class="invalid">{{ error }}</strong>
|
||||
<br>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user