* fixes bug in case of unset dates for intervention
* adds missing template formater
* adds/updates translations
This commit is contained in:
2021-09-27 11:12:40 +02:00
parent 7ee28e526e
commit e94dbbd3c8
5 changed files with 172 additions and 153 deletions

View File

@@ -276,9 +276,9 @@ class SimpleGeomForm(BaseForm):
geom = Polygon.from_bbox([0, 0, 0, 0])
# Zoom out to a very high level, so the user can see directly that there is no geometry for this entry
self.fields["geom"].widget.attrs["default_zoom"] = 1
self.initialize_form_field("geom", geom)
self.area = geom.area
if read_only:
self.initialize_form_field("geom", geom)
self.area = geom.area
self.fields["geom"].disabled = True
def save(self, action: UserActionLogEntry):