How to use django-filter with class views?

A few years ago, Vitor made a nice tutorial on using django-filter. Unfortunately, it doesn’t address how to use django-filter with class-based views.

My question is not unlike this one on stackoverflow:

I’ve searched all over for a simple example of django-filter with class-based views, but even the official documentation doesn’t have a complete example.

Any ideas? :smile:

Project documentation shows you how to:

Also you can just implement filterin at get_queryset method of your GenericListView