Skip to main content

django-dropulous

PyPI Documentation Tests Coverage

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

See a live example.

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.1.tar.gz (23.9 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.1-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file django_dropulous-0.1.1.tar.gz.

File metadata

  • Download URL: django_dropulous-0.1.1.tar.gz
  • Upload date:
  • Size: 23.9 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.1.tar.gz
Algorithm Hash digest
SHA256 d3ce12fe6f1e02220541a8c9bf59308aded5c2907739b3703131dbc55389d076
MD5 d95fa2cf2711a90417e43dad6f261eb8
BLAKE2b-256 ad3073da4cdee64eca29eaef9322c60efa2bef64f6854ea12158584d291a5f4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_dropulous-0.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_dropulous-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fbd8ca2009ce2cf21ec67b82537942fdc0caf079ecf743cb4f7b8e67426e4f3c
MD5 bcb76f4541d824cfeaf8299faed1f7e6
BLAKE2b-256 794f705770c4ef90cb73e1d5ded5f8ffd91c74c30760d64f1c6612beb63aac0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_dropulous-0.1.1-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

This release

0.1.1 This release

2 files

0.1.0

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