Friday, February 2, 2018

Re: In the Admin, Is it possible to make filters on foreign keys usable with lots of related objects?

You should rather use search_fields instead of filtering together with the sorting ability of the admin. Thats much more suited for a scenario like described above.
The filter is for status fields or something with just a few different entries, otherwise build your own filter to filter for some specific values.

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1ffa9984-7775-49d1-bc78-6dd2de7fcf5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment