#49 Extends sanitize db command

* extends sanitize db command to remove unrelated parcels and district from the database
* fixes bug where single parcel wfs match would lead to unexpected behaviour
* adds admin interface for parcels and districts
* adds updating of parcels in case of SimpleGeomForm saving
This commit is contained in:
2022-01-04 16:25:17 +01:00
parent 2494ecc493
commit 6563e5e438
4 changed files with 63 additions and 3 deletions

View File

@@ -158,10 +158,16 @@ class ParcelWFSFetcher(AbstractWFSFetcher):
"wfs:FeatureCollection",
{},
)
features += collection.get(
members = collection.get(
"wfs:member",
[],
)
if len(members) > 1:
features += members
else:
features += [members]
if collection.get("@next", None) is not None:
start_index += self.count
else: