About Many-to-many Relations

In Django model admin, list_filter can refer to a model from the opposite side of many-to-many relation.

For example, if a Book model has a ManyToMany field authors, then the BookAdmin can have list_filter = ["authors"] as well as the AuthorAdmin can have list_filter = ["book"].

Tips and Tricks Programming Development Django 4.2 Django 3.2 Django 2.2