theatlantic/django-chosen — pull request #22 by strongriley (2012-12-09 06:01:24+00:00)
Title: Allow Single Optional Deselect

For fields that are optional, users need a way to deselect a value completely. Currently, once something is set with chosen, there's no going back.

By using the ```data-optional``` attribute, and reading it into the javascript, we can pass the proper Chosen setting - ```allow_single_deselect``` - to allow users to deselect the value.