I have the following models in models.py:
models.py
class ListinoTraduttore(models.Model): traduttore = models.ForeignKey(\'Traduttore\', related_name=
This worked for me.
Search the field of the foreign key using my_related_object__first_attribute:
search_fields = ('author__username', 'title') from models author = models.ForeignKey(User, on_delete=models.CASCADE, related_name='blog_posts2')