Skip to main content

django-dropulous

PyPI Documentation Tests Coverage

Django form widgets for Dropulous - dependency-free customisable dropdown controls.

Features

  • DropulousWidget and DropulousMultipleWidget - widgets to use with a model form
  • DropulousChoiceField and DropulousMultipleChoiceField - form fields to use in standard forms
  • AutocompleteView and ModelAutocompleteView - 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

django_dropulous-0.1.0.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_dropulous-0.1.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

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

Hashes for django_dropulous-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e499a113c99ca4b1b1a450694838e698e3a1485112dc0e70d50f21d9081e0252
MD5 a057931ba6e5267cae760c07e5426480
BLAKE2b-256 66b436ceb39ee8edd76209e57a4f2db9d3f42de4958ba0404729f18701c872b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_dropulous-0.1.0.tar.gz:

Publisher: pypi.yml on radiac/django-dropulous

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_dropulous-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_dropulous-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a96ab9bc3da7f7f5f7499decc5ee1826802190f803e8329379a04e0bdfc594c8
MD5 e5025b15f3c20b3eae55dcd54185ddb5
BLAKE2b-256 e0fafb0061b5f4430bdd791372188d36cb16641df4e63b1d99d800c20ec277dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_dropulous-0.1.0-py3-none-any.whl:

Publisher: pypi.yml on radiac/django-dropulous

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.1

2 files

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page