djangosnippets.org: Latest snippets posted by notanumberhttp://djangosnippets.org/users/notanumber/2012-05-04T16:59:39.702095-05:00notanumberDisableableSelectWidget
2012-05-04T16:59:39.702095-05:00notanumberhttp://djangosnippets.org/snippets/2743/<p>A Select widget that allows choices to be disabled. Specify <code>disabled_choices</code> to indicate which choices should be present in the list, but disabled.</p>
<p>A possible use case for this is a form that displays data that can be edited by privileged user's but only viewed by others.</p>
Freely redistributable