djangosnippets.org: Latest snippets posted by scjodyhttp://djangosnippets.org/users/scjody/2012-05-17T14:42:02.093176-05:00scjodyWork around issue 10827
2012-05-17T14:42:02.093176-05:00scjodyhttp://djangosnippets.org/snippets/2752/<p>Work around Django <a href="https://code.djangoproject.com/ticket/10827">issue 10827</a></p>
Freely redistributableAllow disabling options in a select widget
2011-06-03T09:19:53.188672-05:00scjodyhttp://djangosnippets.org/snippets/2453/<p>HTML allows an option in a <select> to be disabled. In other words it will appear in the list of choices but won't be selectable. This is done by adding a 'disabled' attribute to the <option> tag, for example:
<option value="" disabled="disabled">Disabled option</option>
This code subclasses the regular Django Select …</p>
Freely redistributable