From a8a7cbaaab77dbf5a0a0f2923d470149ca503b8b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 5 Dec 2025 10:51:56 +0100 Subject: 🐛 operation form: fix bad filter for new organization (refs #6519) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archaeological_operations/forms.py') 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( -- cgit v1.2.3