Django Admin change_list filtering multiple ManyToMany
问题 In the Django-Admin you have the possibility to define list_filter on fields of the model. This is working for ManyToMany-Fields as well. class ModelA(models.Model): name = models.CharField(max_length=100, verbose_name="Name") class ModelB(models.Model): model_a_relation = models.ManyToManyField(ModelA) class ModelBAdmin(ModelAdmin): list_filter = [model_a_relation, ] admin.site.register(ModelB, ModelBAdmin) Now, I can filter my list of elements of ModelB by relation to ModelA in the Admin