# How to use same django filter(filters.py) in two different views

**URL:** <https://forum.djangoproject.com/t/how-to-use-same-django-filter-filters-py-in-two-different-views/5820>\
**Category:** Using Django\
**Created:** [December 23, 2020, 12:49pm UTC](https://forum.djangoproject.com/t/how-to-use-same-django-filter-filters-py-in-two-different-views/5820 "2020-12-23T12:49:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaileshyadav7771](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/shaileshyadav7771/32/2825_2.png) [@shaileshyadav7771](https://forum.djangoproject.com/u/shaileshyadav7771)\
**Post date:** [December 23, 2020, 12:49pm UTC](https://forum.djangoproject.com/t/how-to-use-same-django-filter-filters-py-in-two-different-views/5820/1 "2020-12-23T12:49:41Z")

</div>

Hi All, Can anyone please help me with the below question about how to use the same Filter class in two different views in order to get the same filtered queryset.

> <https://stackoverflow.com/questions/65424364/how-to-use-same-django-filterfilters-py-in-two-different-views>

---

<div class="post-metadata">

**Author:** ![carltongibson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/carltongibson/32/267_2.png) [@carltongibson](https://forum.djangoproject.com/u/carltongibson)\
**Post date:** [December 23, 2020, 2:29pm UTC](https://forum.djangoproject.com/t/how-to-use-same-django-filter-filters-py-in-two-different-views/5820/2 "2020-12-23T14:29:44Z")

</div>

Hi @shaileshyadav7771 — You’ve posted this on SO, here, and on two threads in the django-filters mailing list. Don’t do that please, it is rude, and wastes everybody’s time and effort.

Posting on SO if sufficient. Please wait for an answer there.

---

<div class="post-metadata">

**Author:** ![shaileshyadav7771](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/shaileshyadav7771/32/2825_2.png) [@shaileshyadav7771](https://forum.djangoproject.com/u/shaileshyadav7771)\
**Post date:** [December 23, 2020, 2:32pm UTC](https://forum.djangoproject.com/t/how-to-use-same-django-filter-filters-py-in-two-different-views/5820/3 "2020-12-23T14:32:56Z")

</div>

Sorry, Carlton Gibson Sure I will wait for the answer.
