django-admin-rangefilter
A Django app that adds a filter by date range and numeric range to the admin UI.
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-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-admin-rangefilter 0.15.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_admin_rangefilter-0.15.0.tar.gz | 25.8 kB | Without provenance | Details for django_admin_rangefilter-0.15.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_admin_rangefilter-0.15.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_admin_rangefilter-0.15.0-py2.py3-none-any.whl |
Total release size: 74.7 kB
Release files / django_admin_rangefilter-0.15.0.tar.gz
| Download URL | django_admin_rangefilter-0.15.0.tar.gz |
|---|---|
| Size | 25.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61d9f57715fd091d894e91fa9e1124013e006b645294a70cb2e9255a6e6403ae
|
|
BLAKE2b-256 checksum How to use checksums |
eaacafbf37addf9a882bff1bfc7102778c86bfd2d939cdc8396f86842a4229ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / django_admin_rangefilter-0.15.0-py2.py3-none-any.whl
| Download URL | django_admin_rangefilter-0.15.0-py2.py3-none-any.whl |
|---|---|
| Size | 48.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4e950d01b4d35915c47fc3f2eb23c097825774dd577871632cbd8fcce5f97363
|
|
BLAKE2b-256 checksum How to use checksums |
b0225c6518159241082f9482f5313b1ef168adbfb9f3633cf50d3762d7248d3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for django-admin-rangefilter 0.15.0
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.