Django application to handle chained model fields.
Project description
# Django Smart Selects
[![Jazzband](https://jazzband.co/static/img/badge.svg)](https://jazzband.co/) [![Build Status](https://travis-ci.org/jazzband/django-smart-selects.svg?branch=master)](https://travis-ci.org/jazzband/django-smart-selects) [![Coverage Status](https://coveralls.io/repos/github/jazzband/django-smart-selects/badge.svg?branch=master)](https://coveralls.io/github/jazzband/django-smart-selects?branch=master) [![PyPI](https://img.shields.io/pypi/v/django-smart-selects.svg)](https://pypi.org/project/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.
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](https://github.com/yourlabs/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:
`shell 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 adjust chainedm2m.js and chainedfk.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
Hashes for django-smart-selects-1.5.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b87362c15c0e80ba10d71955b85a486a50bd00ac72bb9014b25e4a3715988c2 |
|
MD5 | a2c12bc2caed3be10db2f5ebb4559e23 |
|
BLAKE2b-256 | 4832a73e7db286df54873e9b51de73fd3d981d26aadda9e4c373fd743576acf8 |