You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have many models that have a ForeignKey field to the User model. When I use django-admin-site-search to search for "someuser@example.com" by default I only get that user as a result, not also all the objects that belong to this user.
And then I see many more results, as I'd expect. But it's kind of annoying to have to add these filters by hand for all possible related models (obviously I have ForeignKey fields to other models too). Can this be automated somehow?
The text was updated successfully, but these errors were encountered:
Yeah - I think having this as an opt-in via the admin's search fields, as per #22, is the way to go. Adding it on top of the current implementation would make performance even more problematic.
I have many models that have a ForeignKey field to the User model. When I use django-admin-site-search to search for "someuser@example.com" by default I only get that user as a result, not also all the objects that belong to this user.
I can extend the filter like so:
And then I see many more results, as I'd expect. But it's kind of annoying to have to add these filters by hand for all possible related models (obviously I have ForeignKey fields to other models too). Can this be automated somehow?
The text was updated successfully, but these errors were encountered: