As an example, I have two models: Household and Person:
from django.db import models
class Household(models.Model):
address = # ...
class Person(models.Model):
household = models.ForeignKey(Household)
name = # ...
How can I search for Households by names of Persons inside the Django admin?
As mentioned in the docs for
search_fields:This should also work "backwards", as in your example.