diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-09-13 12:59:20 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-04-16 16:38:32 +0200 |
commit | 3e9cfaeaed2eced1e3f9b2bd80f2f93b730d06e9 (patch) | |
tree | f340b493ce89008b1999a6767da6ee8d58dabf79 /archaeological_operations/forms.py | |
parent | c2764f756035048756866fa4e4d4c75908e5b392 (diff) | |
download | Ishtar-3e9cfaeaed2eced1e3f9b2bd80f2f93b730d06e9.tar.bz2 Ishtar-3e9cfaeaed2eced1e3f9b2bd80f2f93b730d06e9.zip |
✨ Pre-import form: form choice field - black format
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r-- | archaeological_operations/forms.py | 3 |
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: |