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.5.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f90d1e1de0481e9bf853c71753430e25c583cb96b9f8398a99be6c4de834647 |
|
MD5 | 0567ea20fc5a3d99ccea2652162dd92f |
|
BLAKE2b-256 | a5a3f08c95a4f52f355b8c0eff76243239984f98b9e85906d0006fd28e0aab53 |
Close
Hashes for django_admin_rangefilter-0.5.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ca64adebc29c4756a796101114e39242d82ac95df6c4796cf9332adf2cefb2f |
|
MD5 | cb42b7923a5d344193f009afc5d300a0 |
|
BLAKE2b-256 | 043cc902e9dfa30919953c7f546e9607bb8ee586bb37d269df635050776a0c98 |