Skip to main content
https://github.com/EricOuma/django-jazzmin-admin-rangefilter/workflows/build/badge.svg?branch=master https://codecov.io/gh/EricOuma/django-jazzmin-admin-rangefilter/branch/master/graph/badge.svg

django-jazzmin-admin-rangefilter

A Django app that adds a filter by date range and numeric range to the Django Jazzmin admin UI.

https://raw.githubusercontent.com/EricOuma/django-jazzmin-admin-rangefilter/master/docs/images/screenshot.png

Requirements

  • Python 3.6+

  • Django 1.11+

Installation

Use your favorite Python package manager to install the app from PyPI, e.g.

Example:

pip install django-jazzmin-admin-rangefilter

Add rangefilter to INSTALLED_APPS:

Example:

INSTALLED_APPS = (
    ...
    'rangefilter',
    ...
)

Example usage

In admin

from datetime import datetime

from django.contrib import admin
from rangefilter.filters import (
    DateRangeFilterBuilder,
    DateTimeRangeFilterBuilder,
    NumericRangeFilterBuilder,
    DateRangeQuickSelectListFilterBuilder,
)

from .models import Post


@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
    list_filter = (
        ("created_at", DateRangeFilterBuilder()),
        (
            "updated_at",
            DateTimeRangeFilterBuilder(
                title="Custom title",
                default_start=datetime(2020, 1, 1),
                default_end=datetime(2030, 1, 1),
            ),
        ),
        ("num_value", NumericRangeFilterBuilder()),
        ("created_at", DateRangeQuickSelectListFilterBuilder()),  # Range + QuickSelect Filter
    )

Support Content-Security-Policy

For Django 1.8+, if django-csp is installed, nonces will be added to style and script tags.

Metadata

Release files for django-jazzmin-admin-rangefilter 1.0.1

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-jazzmin-admin-rangefilter 1.0.1
File Size Uploaded Provenance Actions
django_jazzmin_admin_rangefilter-1.0.1.tar.gz 23.8 kB Without provenance Details for django_jazzmin_admin_rangefilter-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-jazzmin-admin-rangefilter 1.0.1
File Interpreter ABI Platform Actions
django_jazzmin_admin_rangefilter-1.0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details for django_jazzmin_admin_rangefilter-1.0.1-py2.py3-none-any.whl

Total release size: 71.7 kB

Release files / django_jazzmin_admin_rangefilter-1.0.1.tar.gz

Download URL django_jazzmin_admin_rangefilter-1.0.1.tar.gz
Size 23.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d29dc9b0dcd7e9d27ebef4b53fae1d308522ab1b2aa3fb009df7d1f1ccdce452
BLAKE2b-256 checksum
How to use checksums
d601d8a7053a06f737a399965cfeade530c1c0078ff7a8a6f86837e9404f6d7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / django_jazzmin_admin_rangefilter-1.0.1-py2.py3-none-any.whl

Download URL django_jazzmin_admin_rangefilter-1.0.1-py2.py3-none-any.whl
Size 47.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
29791644371cedcf7fcca504bfd064120b379cf0b614b798c1b7eb25a53dac31
BLAKE2b-256 checksum
How to use checksums
a4a1abfcd1cd34d4f6d0203879509dd3b6205216791228fc8eb042c51bba47f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for django-jazzmin-admin-rangefilter 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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