Skip to content

Commit

Permalink
πŸ’„ Use bootstrap select widget for asiignteamform
Browse files Browse the repository at this point in the history
  • Loading branch information
pajowu committed Aug 3, 2023
1 parent fab0cc4 commit 923691f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions froide/foirequest/forms/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
Expand Down

0 comments on commit 923691f

Please sign in to comment.