summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-12-05 10:51:56 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-12-05 10:53:13 +0100
commita8a7cbaaab77dbf5a0a0f2923d470149ca503b8b (patch)
tree7f99705b679143c0ca1149b7320768440878f383
parent4932d9968b83e96ab3bcd306ec331022d2a29c18 (diff)
downloadIshtar-a8a7cbaaab77dbf5a0a0f2923d470149ca503b8b.tar.bz2
Ishtar-a8a7cbaaab77dbf5a0a0f2923d470149ca503b8b.zip
🐛 operation form: fix bad filter for new organization (refs #6519)
-rw-r--r--archaeological_operations/forms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index 59704cf81..7be3e9a5f 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -754,7 +754,7 @@ class OperationFormGeneral(CustomForm, ManageOldType):
widget=widgets.JQueryAutoComplete(
reverse_lazy('autocomplete-organization',
args=[organization_type_pk_lazy('operator')]),
- limit={'organization_type': organization_type_pk_lazy('operator')},
+ limit={'organization_type': [organization_type_pk_lazy('operator')]},
tips=lazy(get_operator_label),
associated_model=Organization, new=True),
validators=[valid_id(Organization)], required=False)
@@ -1724,7 +1724,7 @@ class QAOperationFormMulti(QAForm):
widget=widgets.JQueryAutoComplete(
reverse_lazy('autocomplete-organization',
args=[organization_type_pk_lazy('operator')]),
- limit={'organization_type': organization_type_pk_lazy('operator')},
+ limit={'organization_type': [organization_type_pk_lazy('operator')]},
associated_model=Organization, new=True),
validators=[valid_id(Organization)], required=False)
qa_documentation_received = forms.ChoiceField(