Django admin multi-select filter is a Django app that allows you to add a multi-select filter to the Django admin.
pip install django-admin-multi-select-filter
Use the MultiSelectFilter
(or MultiSelectRelatedFieldListFilter
when using on related fields) in your admin classes (you do not need to add the app to INSTALLED_APPS
):
from django.contrib import admin
from django_admin_multi_select_filter.filters import MultiSelectFieldListFilter
class MyModelAdmin(admin.ModelAdmin):
list_filter = (
...
('my_field', MultiSelectFieldListFilter),
...
)