Skip to main content

django-filters-mixin

Simple integration between django-filter and pagination

https://img.shields.io/pypi/v/django-filters-mixin.svg https://img.shields.io/pypi/dm/django-filters-mixin.svg https://img.shields.io/github/license/bashu/django-filters-mixin.svg

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.

Metadata

Release files for django-filters-mixin 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-filters-mixin 0.1.4
File Size Uploaded Provenance Actions
django-filters-mixin-0.1.4.tar.gz 3.4 kB Without provenance Details for django-filters-mixin-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-filters-mixin 0.1.4
File Interpreter ABI Platform Actions
django_filters_mixin-0.1.4-py2.py3-none-any.whl Python 2, Python 3 none any Details for django_filters_mixin-0.1.4-py2.py3-none-any.whl

Total release size: 7.8 kB

Release files / django-filters-mixin-0.1.4.tar.gz

Download URL django-filters-mixin-0.1.4.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d01c2ff208ef16f3a9d9d4f5e9746fcde23a82b582ee2b25485582e8d98e692b
BLAKE2b-256 checksum
How to use checksums
5538d7d0f3a7f96232c04501c7dc8283d292c7ef0e68ffbbc1d6a9fc08563b98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_filters_mixin-0.1.4-py2.py3-none-any.whl

Download URL django_filters_mixin-0.1.4-py2.py3-none-any.whl
Size 4.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5cc93ed9c634c3f38708cba180449cf862b0258cb7fb80ccda98aa12eabd7ce4
BLAKE2b-256 checksum
How to use checksums
d02a2b9ecbbb7d79d338ca9a5b651c5eda981e8ed0d0e9787372c0715c1ecf9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-filters-mixin 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page