On 5/9/08, Kirk Strauser ([EMAIL PROTECTED]) wrote:

>On Tuesday 06 May 2008, Scott SA wrote:
>
>> These are M2M relationship records handled transparently for you. In
>> reality, they are in a table in between your two 'Role' tables. If you
>> want to delete them, then you can select and delete them programatically
>> (i.e. from a button on your form)
>
>I think I expressed myself poorly.  What I meant was that when a visitor is 
>editing a form, and they accidentally click in a MultipleChoiceField widget 
>and select one of the options, there's no way (that I've found) for them to 
>un-select that option before clicking "Submit".
>
>Imagine a field in a job application like "Which crimes have you been 
>convicted of?  [Armed robbery] [Arson] [Kidnapping]".  You bump "Arson" by 
>mistake.  Don't you wish there was a "none of the above" option to select 
>instead?

I wonder what Freud would have said about that... LOL

For the admin interface, anyway:

    help_text="Use shift-click to add more than one. Ctl-click 
                (Cmd-click for Mac) to de-select your Freudian slip"

The select box works the same in custom forms, but I don't recall if the 
help-text shows.

Otherwise, it is a smidge of JavaScript unless you want to reload the form. A 
quick google for "javascript clear | empty select list" seemed to have a few 
options like the discussion for this one:

    <http://www.tek-tips.com/viewthread.cfm?qid=1121894&page=1>

HTH

Scott

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to