Skip to main content

A replacement for the Select widget with fancy new features - powered by choices.js!

Project description

django-cjswidget PyPI

A replacement for the Select widget with fancy new features - powered by choices.js!

Install

  1. Add "cjswidget" to your INSTALLED_APPS:
INSTALLED_APPS = [
    ...
    'cjswidget',
]

Use

Use in place of a normal select widget, that's all!

from cjswidget.widgets import CJSWidget

class MyForm(ModelForm):
    class Meta:
        model = Profile
        fields = ('country', 'region')
        widgets = {
            'country': CJSWidget(),
            'region': CJSWidget(options={'shouldSort': False}),
        }

License

This software is released under the MIT license.

Copyright (c) 2019-2026 Luke Rogers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_cjswidget-0.7.1.tar.gz (32.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_cjswidget-0.7.1-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

Details for the file django_cjswidget-0.7.1.tar.gz.

File metadata

  • Download URL: django_cjswidget-0.7.1.tar.gz
  • Upload date:
  • Size: 32.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_cjswidget-0.7.1.tar.gz
Algorithm Hash digest
SHA256 46e69dbede553441a304f357e621f08f292552b9fa5f70b418546d1d7e47c42a
MD5 23f2244b22df92c755be094832c2d4ba
BLAKE2b-256 e903fd5bded255b6d250bf10d7c15e1dd805f39989b1a314ef9e07b92c4b00aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_cjswidget-0.7.1.tar.gz:

Publisher: release.yml on dmptrluke/django-cjswidget

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_cjswidget-0.7.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_cjswidget-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 741111059715a08c4ee98f5e7ba414b1e476ee71adadb4ef1e9be5eb888e8d75
MD5 23796f9138eaa78bb2832cc22d211340
BLAKE2b-256 74d6f1c3d9928133366dafd3de08d9146e0fcfb4aa40211e5c948614677d056b

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_cjswidget-0.7.1-py3-none-any.whl:

Publisher: release.yml on dmptrluke/django-cjswidget

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

Supported by

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