This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.

Release History

Release History

This version
History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_filters_mixin-0.1.4-py2.py3-none-any.whl (4.4 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Oct 14, 2016
django-filters-mixin-0.1.4.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source Oct 14, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting