skillfed

django-admin-autocomplete-filter

A simple Django app to render list filters in django admin using autocomplete widget

django-admin-autocomplete-filter v0.7.1 584.0K downloads/30d#5,890 on PyPI360
Copyleft license DORMANT released

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-filter

uv

uv add django-admin-autocomplete-filter

poetry

poetry add django-admin-autocomplete-filter

Installing 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

Framework :: DjangoFramework :: Django :: 2.0Intended Audience :: DevelopersLicense :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)Operating System :: OS IndependentProgramming Language :: Python :: 3.5Programming Language :: Python :: 3.6Topic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries :: Python Modules

Tags

django admin autocomplete filterselect2 list filter djangosearchable admin filters djangoautocomplete foreign key filterdjango admin search widgetdynamic admin list filter
django-adminfilteringui-widget

More Python Modules packages

idna

Converts domain names between Unicode and…

permissive · top 100 on PyPI

setuptools

Setuptools is a Python build backend and…

permissive · top 100 on PyPI

PyYAML

PyYAML parses and emits YAML 1.1 data format,…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

annotated-types

Provides reusable metadata objects for use with…

permissive · top 100 on PyPI

typing-inspection

Provides runtime tools to inspect and…

permissive · top 100 on PyPI

django-admin-list-filter-dropdown

Renders Django admin list filters as dropdown…

permissive · top 5,000 on PyPI

django-admin-rangefilter

Adds date range, datetime range, and numeric…

permissive · top 5,000 on PyPI

django-more-admin-filters

Provides a collection of Django admin filter…

permissive · top 15,000 on PyPI

django-select2

Provides custom autocomplete form fields for…

permissive · top 15,000 on PyPI

django-autocomplete-light

Provides autocomplete widgets for Django forms…

permissive · top 15,000 on PyPI

djangoql

DjangoQL provides an advanced search query…

permissive · top 15,000 on PyPI

django-multiselectfield

Adds model and form fields to Django that let…

copyleft · top 5,000 on PyPI

django-data-browser

Provides an interactive web interface for…

permissive · top 15,000 on PyPI

django-better-admin-arrayfield

Provides a list-based widget for Django's…

permissive · top 15,000 on PyPI

django-filter

Django-filter adds dynamic QuerySet filtering…

permissive · top 5,000 on PyPI