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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0997b82d01b3791efd8b94063def7a7f4afb8b7986ec6776fbfee86715230274 |
|
MD5 | 0ac8a9ab4b6890f176586d17bc5c67c8 |
|
BLAKE2b-256 | bf6c21c5dcd6bcd7f270a2fdfc5107b60d48379475b7e4328fd09c22ad3a1e0b |
Close
Hashes for django_admin_rangefilter-0.5.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b867ecf893c049900964a9ac6495255a108905592a4030d338b231473f4f708f |
|
MD5 | 42b07e007a562cf595e8bdf7a3dbe69b |
|
BLAKE2b-256 | 3f1cfef70dafc077e975d062c6521135bedfa082d0747dad21383c7041c77ae0 |