ModelAdmin.list_filter
Set list_filter to activate filters in the right sidebar of the change list page of the admin, as illustrated in the following screenshot:
list_filter should be a list or tuple of elements, where each element should be of one of the following types:
a field name, where the specified field should be either a BooleanField, CharField, DateField, DateTimeField, IntegerField, ForeignKey or ManyToManyField, for example: class PersonAdmin(admin.ModelAdmin):
list_filter