django-filter meets django-pagination
Project description
django-filters-mixin
Simple integration between django-filter and pagination
Requirements
You must have django-filter installed and configured, see the django-filter documentation for details and setup instructions.
Installation
pip install django-filters-mixin
Usage
The FilterMixin allows to use pagination together with filtering
# views.py
import django_filters
from filters.views import FilterMixin
class CustomFilterSet(django_filters.FilterSet):
# read https://github.com/alex/django-filter#usage
...
class CustomFilterView(FilterMixin, django_filters.views.FilterView):
filterset_class = CustomFilterSet
paginate_by = 12
...
Please see example application. This application is used to manually test the functionalities of this package. This also serves as good example…
You need Django 1.4 or above to run that. It might run on older versions but that is not tested.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-filters-mixin-0.1.3.tar.gz
.
File metadata
- Download URL: django-filters-mixin-0.1.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2866e1860c51ff419f5262565232577f4287d58549f744b380941fd32e47d0eb |
|
MD5 | f75a49f29f9069e6168efa3f655165cd |
|
BLAKE2b-256 | 137266372b74364218c0fc1e41553c43b654fc95e660d2352a7b26584fffb72f |
File details
Details for the file django_filters_mixin-0.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: django_filters_mixin-0.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e059f9a83707507ca40c2a9a6a302d76480951f3ef1200f76f134963ebfaa2a5 |
|
MD5 | a671e2713ea1671d255f3371ce1e3a2c |
|
BLAKE2b-256 | 0ea7f4a15374db1ab6360733b2579be02a46efd27ac549d69c946f15460852d4 |