Groups
Groups
Sign in
Groups
Groups
Django users
Conversations
About
Send feedback
Help
Django_filter with ModelMultipleChoiceFilter
30 views
Skip to first unread message
alimoh...@gmail.com
unread,
Dec 15, 2020, 8:52:02 AM
12/15/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hi
I am using django_filter with a model that has manytomany field.
i cant get it to filter with multiple choice values.
Thanks in advance
class Filter(django_filters.FilterSet):
class Meta:
model = Konsult
fields = {'status', 'kompetens'}
kompetens = django_filters.ModelMultipleChoiceFilter(
queryset=Kompetens.objects.all(),
widget=forms.CheckboxSelectMultiple,
)
Reply all
Reply to author
Forward
0 new messages