Fresh autocompletes for Django
Project description
Features
Python 3.11–3.14 and Django 4.2–6.0+ support
Django (multiple) choice support,
Django (multiple) model choice support,
Django generic foreign key support (through django-querysetsequence),
Multiple widget support: select2.js, easy to add more.
Creating choices that don’t exist in the autocomplete,
Offering choices that depend on other fields in the form, in an elegant and innovative way,
Dynamic widget creation (ie. inlines), supports YOUR custom scripts too,
Provides a test API for your awesome autocompletes, to support YOUR custom use cases too,
A documented automatically tested example for each use case in test_project.
Upgrade from 3.12.1 to 4.0.0
DAL 4.0.0 is a breaking release focused on modern supported runtimes and removing unmaintained integration packages.
Before upgrading, make sure your application runs on Python 3.11 or newer and Django 4.2 or newer. Then upgrade the package:
pip install -U "django-autocomplete-light<5"
If you use optional integrations, install the matching extra explicitly:
pip install -U "django-autocomplete-light[gfk]<5" # GenericForeignKey support pip install -U "django-autocomplete-light[tags]<5" # django-taggit support pip install -U "django-autocomplete-light[nested]<5" # django-nested-admin support
Remove the following packages from INSTALLED_APPS and imports; they are no longer shipped in DAL 4.0.0:
dal_genericm2m
dal_genericm2m_queryset_sequence
dal_gm2m
dal_gm2m_queryset_sequence
dal_select2_tagging
dal_legacy_static
The genericm2m extra was removed. Generic foreign key support remains available through django-autocomplete-light[gfk] and dal_queryset_sequence. django-taggit support remains available through django-autocomplete-light[tags] and dal_select2_taggit.
If your deployment or packaging scripts build DAL from source, switch from setup.py entry points to the PEP 517 build backend:
python -m build
After upgrading, test forms that render existing Select2 values, multiple Select2 submissions, clearable placeholders, HTMX swaps, and any custom attrs=None widget construction. These areas changed between 3.12.1 and 4.0.0.
Resources
For Security issues, please contact security@<our github group name>.org
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_autocomplete_light-4.0.3.tar.gz.
File metadata
- Download URL: django_autocomplete_light-4.0.3.tar.gz
- Upload date:
- Size: 99.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b0dc31aee64cc084358129df60954c05ab7132657873eebc0612e3160307057
|
|
| MD5 |
1d2b88cce2ac3ce4edac6500cf17791b
|
|
| BLAKE2b-256 |
b35d0f1f1884cfa5665a20a89497c80fc10726f47d982905c8e36e9ef31cc7e6
|
File details
Details for the file django_autocomplete_light-4.0.3-py3-none-any.whl.
File metadata
- Download URL: django_autocomplete_light-4.0.3-py3-none-any.whl
- Upload date:
- Size: 113.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e36a7c570f914cfd793568eea3eb2646da4b64f6d1cd3bea8878cc8b20a18f3f
|
|
| MD5 |
16afbcf039aa3c8770eaf6a541331269
|
|
| BLAKE2b-256 |
22fa299a37e7a4baf7bec9c002e4bd1f46cc6e5db8565d8f9883407d471cf2df
|