[Django]-Admin filters for django admin

8👍

If you mean you want to filter through Boolean fields, go to admin.py and add list_filter in your modelAdmin.
For example:

from django.contrib import admin

class YourModelAdmin(admin.ModelAdmin):
    list_filter = [
         "first_boolean_field",
         "second_bollean_field",
         "third_boolean_field"
    ]
    search_fields = (
        "field1",
        "field2",
    )

admin.site.register(YourModel, YourModelAdmin)

list_filter will allow you to filter by Boolean fields multiple times and search_field will allow you search by fields in the tuple.

Leave a comment