# How to Add a Text Filter to Django Admin

DevFeed: [How to Add a Text Filter to Django Admin](<https://devfeed.tech/articles/how-to-add-a-text-filter-to-django-admin-33906.md>)

Original publisher: [Read original article](<https://hakibenita.com/how-to-add-a-text-filter-to-django-admin>)

Author: Haki Benita

Published: 2018-01-01T22:00:00Z

Content type: tutorial

Language: en

Sources: [Haki Benita](<https://devfeed.tech/sources/haki-benita.md>)

Topics: [Django](<https://devfeed.tech/topics/django.md>), [implementation](<https://devfeed.tech/topics/implementation.md>)

Tags: [articles](<https://devfeed.tech/tags/articles.md>), [custom](<https://devfeed.tech/tags/custom.md>), [django](<https://devfeed.tech/tags/django.md>), [django-admin](<https://devfeed.tech/tags/django-admin.md>), [faster](<https://devfeed.tech/tags/faster.md>), [filter](<https://devfeed.tech/tags/filter.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [search](<https://devfeed.tech/tags/search.md>), [text](<https://devfeed.tech/tags/text.md>)

## AI overview

This tutorial explains how to replace broad Django Admin search fields with custom text-based ListFilters for specific fields. The approach avoids large match-any queries and can make admin searches faster.

## Source excerpt

Django Admin search fields are great, throw a bunch of fields in search_fields and Django will handle the rest. The problem with search field begins when there are too many of them. This is how we replaced Django search with text filters for specific fields, and made Django admin much faster.