heya, Yeah, that is an option, just add a clear all button. Shouldn't be too hard.
I find the filter_horizontal widget much nicer though, might just use that =). Thanks for your help. Cheers, Victor On Apr 19, 6:26 pm, Jani Tiainen <[email protected]> wrote: > No, it's definitely not obvious but there is no simple way to otherwise > to do it. > > We've sometimes added button with piece of javascript to clear all > selections. But that only works if user has js enabled of course. > > It's just how browsers and operating systems show that particular > component and there is quite little you can do about it. > > -- > > Jani Tiainen > > On 04/19/2010 08:45 AM, Victor Hooi wrote: > > > > > > > Jani, > > > Aha, that worked, thanks =). > > > Don't know why I didn't think about using Ctrl...lol. > > > However, do you think it'd be obvious to new users, to use ctrl? > > > Cheers, > > Victor > > > On Apr 19, 2:46 pm, Jani Tiainen<[email protected]> wrote: > >> On 04/19/2010 06:58 AM, Victor Hooi wrote: > > >>> Hi, > > >>> I have a field in a model which is set to null/blank = True > > >>> firm = models.ManyToManyField(Firm, null=True, blank=True) > > >>> I tried using the default m2m filter, however, I wasn't sure how to > >>> unselect an entry. > > >>> I also tried using filter_horizontal, and this was much more intuitive/ > >>> niftier. And I was able to unselect here. > > >>> However, I'm still not sure how to clear all selected FKs in the > >>> default m2m widget. Clicking on any single item seems to replace the > >>> current selection with that one, click directly on a selected item > >>> doesn't seem to unselect it. Clicking out of the widget simply seems > >>> to unfocus the widget, but the selected items still seem selected. > > >> Click one item, then (at most os/computers/browsers) press CTRL down and > >> click selected entry. It should clear selection. > > >> -- > > >> Jani Tiainen > > >> -- > >> 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 > >> athttp://groups.google.com/group/django-users?hl=en. > > -- > 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 > athttp://groups.google.com/group/django-users?hl=en. -- 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.

