Thanks Collin, I looked at raw field ids, but feels too basic. I'm attempting to implement autocomplete_light which seems to offer m2m selection.
IT would seem that this would be a common problem: select from a large list without displaying that entire list. filter_horizontal would work if I could turn off the left hand side list and still get the search and select functions. I wish I had time to extend that. On Thursday, December 11, 2014 5:25:51 AM UTC-10, Collin Anderson wrote: > > Hi, > > Check out raw_id_fields if you haven't. > > Either on ArticleAdmin: > raw_id_fields = ['categories'] > > Or as an inline: > class CategoryInline(models.TabularInline): > model = Article.categories.through > extra = 0 > raw_id_fields = ['category'] > > Collin > > On Wednesday, December 10, 2014 2:32:20 AM UTC-5, James Y wrote: >> >> I have a Category model that is m2m with an Article model and need to >> make categories selectable in my article admin. So I'm using >> a filter_horizontal and the problem is that I have thousands of categories >> and do not want to load them all into the left hand side (lhs) of >> filter_horizontal. >> >> Is there a way to limit the lhs to just a search functionality instead of >> a category browse? >> >> Is there another widget I should use just for searching categories to >> make m2m relationships? >> >> Thanks >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3d5d3d35-723d-4670-8801-97bed32e3284%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

