Skip to main content

Django Smart Selects

Jazzband Build Status Coverage Status PyPI

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 adjust chainedm2m.js and chainedfk.js to build checkboxes in that case

Metadata

Release files for django-smart-selects 1.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-smart-selects 1.7.2
File Size Uploaded
django_smart_selects-1.7.2.tar.gz 27.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-smart-selects 1.7.2
File Interpreter ABI Platform
django_smart_selects-1.7.2-py3-none-any.whl Python 3 none any Details

Total release size: 59.6 kB

Release files / django_smart_selects-1.7.2.tar.gz

Download URL django_smart_selects-1.7.2.tar.gz
Size 27.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c8116718ecf2d0d0fd4cd1e52c26d2dcc586e25319aa65af7af2d51a1012df3a
BLAKE2b-256 checksum
How to use checksums
4a333b512f6b38e0581be812f470424e9b819688edba03b581931534d5fcfc11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.0

Release files / django_smart_selects-1.7.2-py3-none-any.whl

Download URL django_smart_selects-1.7.2-py3-none-any.whl
Size 31.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08c774d96285e6d169043cd548860d74d085be8d349c42437232c42bc43cd79a
BLAKE2b-256 checksum
How to use checksums
7a834ae33d1518409ac65891cc5f739cface4d8f27117fbf1eda3a515e90e86c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.0

Release history Release notifications | RSS feed

This release

1.7.2 This release

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.9

1 release file

1.5.8

1 release file

1.5.7

1 release file

1.5.6

1 release file

1.5.5

1 release file

1.5.4

1 release file

1.5.3

1 release file

1.5.2

1 release file

1.5.1

1 release file

1.5.0

1 release file

1.4.0

1 release file

1.3.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.2.9

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page