skillfed

django-ajax-selects

Edit ForeignKey, ManyToManyField and CharField in Django Admin using jQuery UI AutoComplete.

django-ajax-selects v3.0.3 118.1K downloads/30d#12,130 on PyPI824
Permissive license MIT, GPL DORMANT released

What it is and what it does

django-ajax-selects is a Django app that integrates jQuery UI AutoComplete into Django Admin to provide searchable dropdown fields for ForeignKey and ManyToMany relationships. It was created when Django lacked built-in autocomplete support; Django has since added native autocomplete_fields, making this package legacy for new projects. The package works by defining lookup channels that query your models and returning results as you type, then integrating those into admin forms via custom form fields.

The package includes jQuery 3.7.1 and jQuery UI 1.13.2 by default, though you can disable these and supply your own versions. It requires Django >=3.2 and Python >=3.10. Setup involves registering lookup channels, adding the app to INSTALLED_APPS, and including the ajax_select URL patterns in your project's URL configuration.

Use it for:

  • Migrate legacy Django Admin interfaces that rely on autocomplete for large ForeignKey fields without rewriting to native alternatives.
  • Customize search behavior by defining your own query logic in lookup channels beyond standard filtering.
  • Add autocomplete fields to forms used outside Django Admin by including form.media in your template.
  • Format autocomplete results with custom HTML or styling via the format_item_display method.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Adds autocomplete search fields to Django Admin for managing ForeignKey, ManyToMany, and CharField relationships using jQuery UI.

No for new projects—Django 3.2+ has built-in autocomplete_fields that are better maintained and require no jQuery dependency. Yes-with-conditions for legacy codebases: if you already use this package or need its specific customization hooks, the low install friction and permissive license make it safe to keep. The dormant maintenance status means security fixes are unlikely, so audit your Django and Python versions for compatibility before upgrading.

Install

django-ajax-selects on PyPI

pip

pip install django-ajax-selects

uv

uv add django-ajax-selects

poetry

poetry add django-ajax-selects

Installing django-ajax-selects

Before you install

Low friction: pure Python wheel with only Django as a runtime dependency. Maintenance is dormant—last release was 699 days ago, though the repository remains active with 824 stars and no archived status.

License in practice

Dual-licensed under MIT and GPL, both permissive. You may use, modify, and distribute freely under either license's terms.

Quickstart

pip install django-ajax-selects

# settings.py
INSTALLED_APPS = (..., 'ajax_select', ...)

# yourapp/lookups.py
from ajax_select import register, LookupChannel
@register('tags')
class TagsLookup(LookupChannel):
    model = Tag
    def get_query(self, q, request):
        return self.model.objects.filter(name__icontains=q)[:50]

Requires Django >=3.2 and Python >=3.10

Verify before relying

  • Whether the package's jQuery UI 1.13.2 and jQuery 3.7.1 assets remain compatible with modern browser security policies.
  • Current compatibility with Django versions beyond 3.2, given the long gap since the last release.

Package facts

License MIT, GPL (permissive)
Python support supports the current Python release (<4.0,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 1 — Django
Maintenance dormant — 699 days since the last release
Last repo commit
First released
Downloads 118,148/month — #12,130 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: django_ajax_selects-3.0.3-py3-none-any.whl

Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseLicense :: Other/Proprietary LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Topic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: User Interfaces

Tags

django admin autocompleteforeignkey autocomplete fieldmanytomany search widgetdjango ajax selectadmin relationship lookupjquery ui django forms
legacy-packagedjango-admin

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

Adds model and form fields to Django that let…

copyleft · top 5,000 on PyPI

django-sortedm2m

Provides a drop-in replacement for Django's…

permissive · top 15,000 on PyPI

django-jsonform

Provides a user-friendly JSON editing form…

permissive · top 15,000 on PyPI

django-select2

Provides custom autocomplete form fields for…

permissive · top 15,000 on PyPI

django-admin-autocomplete-filter

Adds autocomplete-based filtering to Django…

copyleft · top 15,000 on PyPI

django-prettyjson

Adds a collapsible, interactive JSON viewer…

permissive · top 15,000 on PyPI

django-summernote

Embeds the Summernote WYSIWYG editor into…

permissive · top 15,000 on PyPI

django-admin-tools

Extends Django's default admin interface with a…

permissive · top 15,000 on PyPI

django-admin-list-filter-dropdown

Renders Django admin list filters as dropdown…

permissive · top 5,000 on PyPI

django-import-export

Handles import and export of data to and from…

permissive · top 5,000 on PyPI