# Let \`ListFilter\` be a \`MediaDefiningClass\` so that they can define custom CSS and JS

**URL:** <https://forum.djangoproject.com/t/let-listfilter-be-a-mediadefiningclass-so-that-they-can-define-custom-css-and-js/22407>\
**Category:** The Admin\
**Created:** [July 19, 2023, 2:30pm UTC](https://forum.djangoproject.com/t/let-listfilter-be-a-mediadefiningclass-so-that-they-can-define-custom-css-and-js/22407 "2023-07-19T14:30:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [July 20, 2023, 10:43am UTC](https://forum.djangoproject.com/t/let-listfilter-be-a-mediadefiningclass-so-that-they-can-define-custom-css-and-js/22407/4 "2023-07-20T10:43:36Z")

</div>

I’m not following you here. If those assets are defined in the model admin class, they’re only going to be sourced once. What makes you think that they would be sourced multiple times?

---

_[View the full topic](https://forum.djangoproject.com/t/let-listfilter-be-a-mediadefiningclass-so-that-they-can-define-custom-css-and-js/22407)._
