Django application to handle chained model fields.
Project description
Django Smart Selects
This package allows you to quickly filter or group "chained" models by adding a custom foreign key or many to many field to your models. This will use an AJAX query to load only the applicable chained objects.
Works with Django version 3.2 to 5.0.
Warning: The AJAX endpoint enforces no permissions by default. This means that any model with a chained field will be world readable. If you would like more control over this permission, the django-autocomplete-light
package is a great, high-quality package that enables the same functionality with permission checks.
Documentation
For more information on installation and configuration see the documentation at:
https://django-smart-selects.readthedocs.io/
Reporting issues / sending PRs
You can try the test_app example using:
python manage.py migrate
python manage.py loaddata test_app/fixtures/*
python manage.py runserver
Then login with admin/admin at http://127.0.0.1:8000/admin/
TODO
- Add permission checks to enable users to restrict who can use the chained fields.
- Add a
ChainedCheckboxSelectMultiple
widget and adjustchainedm2m.js
andchainedfk.js
to build checkboxes in that case
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
File details
Details for the file django_smart_selects-1.7.0.tar.gz
.
File metadata
- Download URL: django_smart_selects-1.7.0.tar.gz
- Upload date:
- Size: 27.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 185cdda122411510463ea2bb6cc45df42ab8f6b18836e9642f098867842edb14 |
|
MD5 | 8a5198639e31980a8d56f19c1facc8e9 |
|
BLAKE2b-256 | 53701985be78ca11288f5877635a137070707efae1982adecc2ec01ea8264c03 |
File details
Details for the file django_smart_selects-1.7.0-py3-none-any.whl
.
File metadata
- Download URL: django_smart_selects-1.7.0-py3-none-any.whl
- Upload date:
- Size: 31.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae87c30cc9f69fd65eb4237f67290aa67e9411e0a9d102ecff5c35f8ef9af106 |
|
MD5 | c8274700c2035210ece62217728838f3 |
|
BLAKE2b-256 | 4fc6f7fb0840eb77f56f319c335009c81acbf6a735690cb6a1769ecc3b2db5f6 |