From 87f6930b30cdc701d859fa257cc85447375ea0f6 Mon Sep 17 00:00:00 2001 From: "Mees, T.D. (Ty)" Date: Wed, 27 Nov 2024 11:15:21 +0100 Subject: [PATCH] fix: use searchable select widget for pp merge page --- participants/forms.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/participants/forms.py b/participants/forms.py index d3c5b34..2c29432 100644 --- a/participants/forms.py +++ b/participants/forms.py @@ -2,8 +2,9 @@ from django.core.exceptions import ValidationError from django.utils.text import gettext_lazy as _ -from cdh.core.forms import (TelephoneInput,BootstrapRadioSelect, - BootstrapCheckboxInput) +from cdh.core.forms import (SearchableSelectWidget, TelephoneInput, + BootstrapRadioSelect, + BootstrapCheckboxInput, ) from main.forms import PPNTemplatedForm, PPNTemplatedModelForm from .models import CriterionAnswer, Participant @@ -61,11 +62,13 @@ class ParticipantMergeForm(PPNTemplatedForm): old_participant = forms.ModelChoiceField( Participant.objects.all(), label=_('participants:merge_form:field:old_participant'), + widget=SearchableSelectWidget, ) new_participant = forms.ModelChoiceField( Participant.objects.all(), label=_('participants:merge_form:field:new_participant'), + widget=SearchableSelectWidget, ) def clean_new_participant(self):