diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-03-31 17:38:31 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:21:00 +0100 |
commit | bd5db67b05654d8c79b18035cf33853da3541d48 (patch) | |
tree | 8c890597afae74c44266ccbec14882a772a201d4 /archaeological_context_records/models.py | |
parent | 221599192781585f4c7ca20dffdcf781b14ac3b9 (diff) | |
download | Ishtar-bd5db67b05654d8c79b18035cf33853da3541d48.tar.bz2 Ishtar-bd5db67b05654d8c79b18035cf33853da3541d48.zip |
Geodata: gpkg, shp import
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r-- | archaeological_context_records/models.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index e9bd70aa8..3a89a6ca9 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -421,8 +421,10 @@ class GeographicSubTownItem(GeoItem): ) if has_geo_town: bad_towns = q_geodata_current_town - else: + elif town: bad_towns = q_geodata_current_town.exclude(source_id=town.id) + else: + return modified = False for bad_town in bad_towns.all(): |