Requirements

Python 2.6+

Django 1.4.5+

Installation

Install using pip:

pip install django-filter

Or clone the repo and add to your PYTHONPATH:

git clone git@github.com:alex/django-filter.git

Usage

Django-filter can be used for generating interfaces similar to the Django
admin’s list_filter interface. It has an API very similar to Django’s
ModelForms. For example, if you had a Product model you could have a
filterset for it with the code: