Skip to content
Discussion options

You must be logged in to vote

You're looking for a MultipleChoiceFilter, which does this by default.

Multiple choices are represented in the query string by reusing the same key with different values (e.g. ‘’?status=Regular&status=Admin’’).

https://django-filter.readthedocs.io/en/stable/ref/filters.html#django_filters.filters.MultipleChoiceFilter

For model usage see ModelMultipleChoiceFilter: https://django-filter.readthedocs.io/en/stable/ref/filters.html#django_filters.filters.ModelMultipleChoiceFilter

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@arpit-nectar
Comment options

Answer selected by arpit-nectar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants