diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-10-18 12:48:05 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-10-18 12:50:55 +0200 |
commit | 20a8009562b4d03b334469fbe2902386be3371f4 (patch) | |
tree | 339fb76b82e542887d21a123a53c23631c42c9f3 /archaeological_context_records/forms.py | |
parent | 249b6c73e645674d8ca699be25a138bceacd477d (diff) | |
download | Ishtar-20a8009562b4d03b334469fbe2902386be3371f4.tar.bz2 Ishtar-20a8009562b4d03b334469fbe2902386be3371f4.zip |
🐛 Custom forms: fix crash when removing fields already filtered
Diffstat (limited to 'archaeological_context_records/forms.py')
-rw-r--r-- | archaeological_context_records/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py index e22bb73cc..24a94f2f5 100644 --- a/archaeological_context_records/forms.py +++ b/archaeological_context_records/forms.py @@ -403,7 +403,7 @@ class RecordFormGeneral(CustomForm, ManageOldType): self.fields["parcel"].required = False self.fields["town"].choices = [("", "--")] else: - self.fields.pop("town") + self._remove_fields(("town",)) site_label = IshtarSiteProfile.get_default_site_label() self.fields["archaeological_site"].label = site_label |