From 923691fc52f3dd0a3279ff4198f2d9d0ed9ccdb4 Mon Sep 17 00:00:00 2001 From: Karl Engelhardt Date: Thu, 3 Aug 2023 16:00:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Use=20bootstrap=20select=20widge?= =?UTF-8?q?t=20for=20asiignteamform?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- froide/foirequest/forms/project.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/froide/foirequest/forms/project.py b/froide/foirequest/forms/project.py index c22bbc3e2..5af51ea01 100644 --- a/froide/foirequest/forms/project.py +++ b/froide/foirequest/forms/project.py @@ -6,7 +6,7 @@ from froide.foirequest.forms.message import get_default_initial_message from froide.foirequest.tasks import create_project_messages -from froide.helper.widgets import BootstrapCheckboxInput +from froide.helper.widgets import BootstrapCheckboxInput, BootstrapSelect from ..auth import get_write_foirequest_queryset from ..forms import SendMessageForm @@ -22,7 +22,9 @@ class MakeProjectPublicForm(forms.Form): class AssignProjectForm(forms.Form): - project = forms.ModelChoiceField(queryset=None, required=False) + project = forms.ModelChoiceField( + queryset=None, required=False, widget=BootstrapSelect + ) def __init__(self, *args, **kwargs): self.user = kwargs.pop("user")