django-admin-autocomplete-filter
A simple Django app to render list filters in django admin using autocomplete widget
What it is and what it does
Django Admin Autocomplete Filter is a Django app that replaces standard dropdown list filters in the admin panel with searchable autocomplete widgets powered by select2. It leverages Django's built-in autocomplete_fields feature to load filter options asynchronously, making it easier to filter large datasets without loading all options upfront.
The package provides filter classes that you attach to a model admin's list_filter, along with a factory function for quick filter creation. It supports custom search views for fine-grained control over results, custom widget text rendering, and integration with Grappelli. The single runtime dependency is django itself, and installation is straightforward via pip.
Use it for:
- Filter album records by artist in a large music database without loading thousands of artist names into memory.
- Create a searchable foreign key filter in admin for any model with a related object that has many instances.
- Customize autocomplete results with business logic (e.g., ordering, permission checks) via a custom search view.
- Render filter widget text differently from the model's default string representation using custom configuration.
- Speed up admin list page load times by deferring option loading until the user interacts with the filter.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds autocomplete-based filtering to Django admin list views, replacing standard dropdown filters with searchable select2 widgets for foreign key and related fields.
Yes, if you are using Django >= 2.0 and need better filtering UX in the admin panel. The package is stable and has no known vulnerabilities, but be aware that maintenance is dormant—last release was 2021-09-11—so do not expect bug fixes or support for very recent Django versions. It is well-suited for existing projects that need a quick improvement to admin filtering without custom development.
Install
django-admin-autocomplete-filter on PyPI
pip
pip install django-admin-autocomplete-filteruv
uv add django-admin-autocomplete-filterpoetry
poetry add django-admin-autocomplete-filterInstalling django-admin-autocomplete-filter
Before you install
Low friction install with a single runtime dependency on django. Maintenance is dormant—last release was 2021-09-11 and last commit 2024-04-16, so expect no active bug fixes or feature development, though the codebase remains stable.
License in practice
Licensed under GNU Lesser General Public License v3 (LGPLv3), a copyleft license. You may use and modify the package freely, but any derivative work must also be licensed under LGPLv3 or compatible terms.
Quickstart
pip install django-admin-autocomplete-filter
# In settings.py, add to INSTALLED_APPS:
# 'admin_auto_filters'
# In admin.py:
from django.contrib import admin
class ArtistFilter:
title = 'Artist'
field_name = 'artist'
class AlbumAdmin(admin.ModelAdmin):
list_filter = [ArtistFilter]
Requires Django >= 2.0. The related model must have search_fields defined in its ModelAdmin for autocomplete to work.
Verify before relying
- Whether the package works with Django versions released after 2021-09-11 (latest release date).
- Compatibility with modern Python versions beyond 3.6 (classifiers list only 3.5 and 3.6).
- Current status of Grappelli integration support.
Package facts
| License | not declared (copyleft) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — django |
| Maintenance | dormant — 1,798 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 584,010/month — #5,890 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: django_admin_autocomplete_filter-0.7.1-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
django-admin-list-filter-dropdownRenders Django admin list filters as dropdown…
permissive · top 5,000 on PyPI
django-admin-rangefilterAdds date range, datetime range, and numeric…
permissive · top 5,000 on PyPI
django-more-admin-filtersProvides a collection of Django admin filter…
permissive · top 15,000 on PyPI
django-select2Provides custom autocomplete form fields for…
permissive · top 15,000 on PyPI
django-autocomplete-lightProvides autocomplete widgets for Django forms…
permissive · top 15,000 on PyPI
djangoqlDjangoQL provides an advanced search query…
permissive · top 15,000 on PyPI
django-multiselectfieldAdds model and form fields to Django that let…
copyleft · top 5,000 on PyPI
django-data-browserProvides an interactive web interface for…
permissive · top 15,000 on PyPI
django-better-admin-arrayfieldProvides a list-based widget for Django's…
permissive · top 15,000 on PyPI
django-filterDjango-filter adds dynamic QuerySet filtering…
permissive · top 5,000 on PyPI