django-admin-rangefilter app, add the filter by a custom date range on the admin UI.
Project description
django-admin-rangefilter
django-admin-rangefilter app, add the filter by a custom date / datetime range on the admin UI.
Requirements
Python 2.7+ or Python 3.4+
Django 1.8+
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 django.contrib import admin
from rangefilter.filter import DateRangeFilter, DateTimeRangeFilter
from .models import Post
@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
list_filter = (
('created_at', DateRangeFilter), ('updated_at', DateTimeRangeFilter),
)
Support Content-Security-Policy
For Django 1.8+, if django-csp is installed, nonces will be added to style and script tags.
INSTALLED_APPS = (
...
'rangefilter',
'csp',
...
)
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
Close
Hashes for django-admin-rangefilter-0.6.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 137eff542bbb9208501d794a0ef5bd103365c9f9505bdeab612e553aaf00bbd1 |
|
MD5 | 7ecfdb37f8a1b4a3e7f01e1226c07286 |
|
BLAKE2b-256 | 99065c4dd575414444b66a68a2ea389de4293668b715f7c4a5ac71431c4d8be7 |
Close
Hashes for django_admin_rangefilter-0.6.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f660f694a8d73bc47d98202267a79f4dd6b7c51e6a4231869feb2c85c22a9049 |
|
MD5 | 79256086d95429a8e3bc6630680ebe9f |
|
BLAKE2b-256 | ef5c890511d24e312c401dc3e670aa15ff9a43f7bd5dee7be61007f0b56c37be |