django-dropulous
Django form widgets for Dropulous - dependency-free customisable dropdown controls.
Features
DropulousWidgetandDropulousMultipleWidget- widgets to use with a model formDropulousChoiceFieldandDropulousMultipleChoiceField- form fields to use in standard formsAutocompleteViewandModelAutocompleteView- API views to serve dropdown options
Django-Dropulous does not support Dropulous on <input> fields, or its
can-add option. For that, you'll want to use
django-tagulous - it has a
SingleTagField to allow custom choices on ForeignKey relationships, and a
TagField for a full tagging system on ManyToMany relationships, with proper tag
parsing, tree-based tags, and more.
Quick start
pip install django-dropulous
# settings.py
INSTALLED_APPS = [
...
"django_dropulous",
]
# forms.py
from django_dropulous.widgets import DropulousWidget, DropulousMultipleWidget
class BookForm(forms.ModelForm):
class Meta:
model = Book
fields = ["genre", "authors"]
widgets = {
"genre": DropulousWidget(),
"authors": DropulousMultipleWidget(source="/autocomplete/authors/"),
}
Read the full documentation or find the project on PyPI.
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_dropulous-0.1.0.tar.gz.
File metadata
- Download URL: django_dropulous-0.1.0.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e499a113c99ca4b1b1a450694838e698e3a1485112dc0e70d50f21d9081e0252
|
|
| MD5 |
a057931ba6e5267cae760c07e5426480
|
|
| BLAKE2b-256 |
66b436ceb39ee8edd76209e57a4f2db9d3f42de4958ba0404729f18701c872b5
|
Provenance
The following attestation bundles were made for django_dropulous-0.1.0.tar.gz:
Publisher:
pypi.yml on radiac/django-dropulous
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_dropulous-0.1.0.tar.gz -
Subject digest:
e499a113c99ca4b1b1a450694838e698e3a1485112dc0e70d50f21d9081e0252 - Sigstore transparency entry: 2387837806
- Sigstore integration time:
-
Permalink:
radiac/django-dropulous@434e940ed35780bfcecaac48419a7b97980c2273 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/radiac
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@434e940ed35780bfcecaac48419a7b97980c2273 -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_dropulous-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_dropulous-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a96ab9bc3da7f7f5f7499decc5ee1826802190f803e8329379a04e0bdfc594c8
|
|
| MD5 |
e5025b15f3c20b3eae55dcd54185ddb5
|
|
| BLAKE2b-256 |
e0fafb0061b5f4430bdd791372188d36cb16641df4e63b1d99d800c20ec277dd
|
Provenance
The following attestation bundles were made for django_dropulous-0.1.0-py3-none-any.whl:
Publisher:
pypi.yml on radiac/django-dropulous
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_dropulous-0.1.0-py3-none-any.whl -
Subject digest:
a96ab9bc3da7f7f5f7499decc5ee1826802190f803e8329379a04e0bdfc594c8 - Sigstore transparency entry: 2387837811
- Sigstore integration time:
-
Permalink:
radiac/django-dropulous@434e940ed35780bfcecaac48419a7b97980c2273 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/radiac
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@434e940ed35780bfcecaac48419a7b97980c2273 -
Trigger Event:
push
-
Statement type: