---
title: "Comment by Kamyshnikov Bogdan on \"Django Admin (Registering Models, Customizing Admin Site)\" | Hashnode"
description: "Nice article! How to add a search field?"
url: "https://hashnode.com/posts/django-admin/62480ac34b4dde0dc0be653f/comment/6274146b0d853a42640534fe"
---

[Discussion](https://hashnode.com/posts/django-admin/62480ac34b4dde0dc0be653f)

Comment [Django Admin (Registering Models, Customizing Admin Site)](https://hashnode.com/posts/django-admin/62480ac34b4dde0dc0be653f)

[Kamyshnikov Bogdan](https://hashnode.com/@kamishick)

[May 5, 2022](https://hashnode.com/posts/django-admin/62480ac34b4dde0dc0be653f/comment/6274146b0d853a42640534fe)

Nice article! How to add a search field?

[Django The Right Way](https://hashnode.com/@pydj)

[May 22, 2022](https://hashnode.com/posts/django-admin/62480ac34b4dde0dc0be653f/comment/6274146b0d853a42640534fe#reply-628a3061929bcf4c721d47b2)

You can add search field using `search_fields` attribute on your `admin.ModelAdmin` class. Full code will look like this

```
class InformationAdmin(admin.ModelAdmin):
    list_filter = ['date_of_birth']
    search_fields = ['name']
```

![DjangoAdminWithSearchField.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1653223662082/Ar3_inon1.png?auto=compress)
