summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-12-05 10:54:18 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-12-05 10:54:18 +0100
commit17f75822af7a330489164463ac916572c486654b (patch)
treed88c4a44133b641f4fd38f52da48d45fc786a326 /archaeological_warehouse/forms.py
parentd16e0f07e377f731df342a6555a17a21aaf05176 (diff)
downloadIshtar-17f75822af7a330489164463ac916572c486654b.tar.bz2
Ishtar-17f75822af7a330489164463ac916572c486654b.zip
✨ QA create warehouse: fix save
Diffstat (limited to 'archaeological_warehouse/forms.py')
-rw-r--r--archaeological_warehouse/forms.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/archaeological_warehouse/forms.py b/archaeological_warehouse/forms.py
index f2605ba12..edc4a3b74 100644
--- a/archaeological_warehouse/forms.py
+++ b/archaeological_warehouse/forms.py
@@ -289,8 +289,6 @@ class WarehouseForm(CustomForm, ManageOldType):
dct["person_in_charge"] = Person.objects.get(pk=dct["person_in_charge"])
if "organization" in dct and dct["organization"]:
dct["organization"] = Organization.objects.get(pk=dct["organization"])
- if not dct.get("spatial_reference_system", None):
- dct.pop("spatial_reference_system")
create_orga = dct.pop("create_organization")
new_item = models.Warehouse(**dct)
new_item.save()