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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0195932572ce46a20b33fb026072fda6546e59185736c7bc6785aafbc050cacb |
|
MD5 | 66232e5cb34c9bbbb95225f95f9b4d8a |
|
BLAKE2b-256 | 9f7a10af44a786eb38c9acc38e968476e76dec1de472015eef30e955fd4b3a5c |
Close
Hashes for django_admin_rangefilter-0.6.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9167b36ee43976ba86137cafd167e268a1c3135934a4d029731497a0356d7ebb |
|
MD5 | 9c3dbd18956da427b85609035da00f56 |
|
BLAKE2b-256 | 4bbe0bbbd3759b2a717285fc3572ebea3ff208c441b6ed7ee36b03ea3c0a3227 |