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.

Also, I noticed in the filter_horizontal widget, that the unselect
(left arrow) is always grey, I guess that's intended. However, my
initial thought was that it would be grey when there were no FKs
chosen, but then would turn blue once there was something to remove.
Guess it's just different tastes.

Cheers,
Victor

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to