1👍
✅
Normally if one would want to use a MultipleChoiceFilter
they would have to provide the choices which you don’t hence no choices are displayed.
Furthermore since category
is a ForeignKey
then instead of using a MultipleChoiceFilter
you should be using a ModelMultipleChoiceFilter
[django-filter docs] instead:
class PlatformFilter(django_filters.FilterSet):
func = django_filters.ModelMultipleChoiceFilter(field_name='category', queryset=Category.objects.all(), conjoined=True)
Source:stackexchange.com