summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-09-13 12:59:20 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-02-05 10:51:51 +0100
commit0261fca8caecb6660a466c2f500eb5642b733b61 (patch)
treee02c3506b60a7556facc41b2c67b230609584238 /archaeological_operations
parent140e9ae8e3f7035cd3232fcdf4213de272c22e47 (diff)
downloadIshtar-0261fca8caecb6660a466c2f500eb5642b733b61.tar.bz2
Ishtar-0261fca8caecb6660a466c2f500eb5642b733b61.zip
✨ Pre-import form: form choice field - black format
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/forms.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index 97a479505..98152f189 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -1157,7 +1157,8 @@ class ArchaeologicalSiteForm(ManageOldType):
def save(self, user):
dct = self.cleaned_data
dct['history_modifier'] = user
- for typ in self.TYPES:
+ type_lst = self._types or self.TYPES
+ for typ in type_lst:
if not dct[typ.key]:
dct[typ.key] = None
if typ.is_multiple: