Django More Admin Filters

raw JSON →
1.15 verified Mon Apr 27 auth: no python

Provides additional filter widgets for Django admin, such as MultiSelectDropdown, MultiSelectFieldListFilter, and DateRangeFilter. Current version 1.15 with irregular releases.

pip install django-more-admin-filters
error ImportError: No module named 'more_admin_filters'
cause Installed the package but used wrong import name (e.g., 'django_more_admin_filters').
fix
Install with 'pip install django-more-admin-filters' and import as 'import more_admin_filters'.
error django.core.exceptions.ImproperlyConfigured: The list_filter '...' does not specify a field.
cause Used the filter class without wrapping it in a tuple with the field name.
fix
Use a tuple: ('myfield', MyFilterClass) instead of (MyFilterClass,) or just the class.
gotcha The package name uses dashes but import uses underscores: install as 'django-more-admin-filters' but import as 'more_admin_filters'.
fix Use 'pip install django-more-admin-filters' then 'from more_admin_filters import ...'.
deprecated Some filter classes from older versions (e.g., UnionFieldListFilter) are no longer present; they were removed in v1.0.
fix Use current classes like MultiSelectFieldListFilter or DropdownFilter.

Register MultiSelectDropdown and MultiSelectFieldListFilter as list filters in Django admin.

# In your admin.py
from django.contrib import admin
from more_admin_filters import MultiSelectDropdown, MultiSelectFieldListFilter
from .models import MyModel

class MyModelAdmin(admin.ModelAdmin):
    list_filter = (
        ('field1', MultiSelectDropdown),
        ('field2', MultiSelectFieldListFilter),
    )

admin.site.register(MyModel, MyModelAdmin)