django FormFields using the Chosen javascript plugin for jQuery
Switch branches/tags
Nothing to show
Clone or download
fdintino Merge pull request #34 from revolunet/master
Move static files to a subdirectory and update README
Latest commit a603281 Jul 16, 2014


django-chosen is a project that makes available django FormFields that uses the Chosen javascript plugin. It was created by developers at The Atlantic.

Note that there is a select field library with even more features available at Most implementation work will go towards django-select2-forms.


The recommended way to install from source is with pip:

    pip install -e "git+"

If the source is already checked out, use setuptools:

    python develop

or, you can install from pypi:

    pip install django-chosen


django-chosen makes the following fields and widget available:


  • ChosenChoiceField
  • ChosenModelChoiceField
  • ChosenMultipleChoiceField
  • ChosenModelMultipleChoiceField


  • ChosenSelect
  • ChosenSelectMultiple

The django-chosen fields can be passed an optional kwarg overlay that overrides the text which appears when no option is selected in the dropdown.

Add chosen to your INSTALLED_APPS, then, in your template, inject your form medias to get chosen css and js :

{{ }}


from django import forms
from chosen import forms as chosenforms

class BookForm(forms.Form):
    name = forms.CharField(max_length=100)
    quality = chosenforms.ChosenChoiceField(overlay="Select book quality...",
        choices=(('New', 'new'), ('Used', 'used')))
    authors = chosenforms.ChosenModelMultipleChoiceField(queryset=Author.objects.all())


The django code is licensed under the [Simplified BSD License](Simplified BSD License) and is copyright The Atlantic Media Company. View the LICENSE file under the root directory for complete license and copyright information.

The Chosen javascript library included is licensed under the MIT License. View chosen/media/js/ for complete license and copyright information about the Chosen javascript library.

Chosen Javascript Documentation

Chosen is a library for making long, unwieldy select boxes more user friendly.

  • jQuery support: 1.4+
  • Prototype support: 1.7+

For documentation, usage, and examples, see Harvest's Chosen JS github

Chosen Javascript Credits