# custom field filter as in date\_hierarchy = 'created'

**URL:** <https://forum.djangoproject.com/t/custom-field-filter-as-in-date-hierarchy-created/42498>\
**Category:** The Admin\
**Created:** [August 20, 2025, 11:22am UTC](https://forum.djangoproject.com/t/custom-field-filter-as-in-date-hierarchy-created/42498 "2025-08-20T11:22:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjanesh](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/anjanesh/32/4583_2.png) [@anjanesh](https://forum.djangoproject.com/u/anjanesh)\
**Post date:** [August 20, 2025, 11:22am UTC](https://forum.djangoproject.com/t/custom-field-filter-as-in-date-hierarchy-created/42498/1 "2025-08-20T11:22:05Z")

</div>

How do I get a custom field (called `product_type`) to show up like the way year filters are shown automatically ?

```auto
date_hierarchy = 'created'

```

 ![CleanShot 2025-08-20 at 16.48.26](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/3X/d/0/d0989b25c7bf0eb4b87a9890168a5ea5c3ba2464.png)

---

<div class="post-metadata">

**Author:** ![philgyford](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/philgyford/32/14295_2.png) [@philgyford](https://forum.djangoproject.com/u/philgyford)\
**Post date:** [August 20, 2025, 11:38am UTC](https://forum.djangoproject.com/t/custom-field-filter-as-in-date-hierarchy-created/42498/2 "2025-08-20T11:38:11Z")

</div>

Are [List Filters](https://docs.djangoproject.com/en/5.2/ref/contrib/admin/filters/) what you’re looking for?

---

<div class="post-metadata">

**Author:** ![anjanesh](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/anjanesh/32/4583_2.png) [@anjanesh](https://forum.djangoproject.com/u/anjanesh)\
**Post date:** [August 20, 2025, 12:41pm UTC](https://forum.djangoproject.com/t/custom-field-filter-as-in-date-hierarchy-created/42498/3 "2025-08-20T12:41:12Z")

</div>

> [@philgyford](#):
>
> List Filters

This works too. Thanks.
