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
@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
list_filter = (
('created_at', DateRangeFilter), ('updated_at', DateTimeRangeFilter),
)
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.3.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 708dc7f5e395d6e45623cfdf840d5cd891b7e3634f807c4de3b190c15019333d |
|
MD5 | 047c1730b605b7da090a63323fc32877 |
|
BLAKE2b-256 | 79c3ba103d75fede6aa2823ef5d6fc00a56b37aa3d11d02611bd59c43cd0fbee |
Close
Hashes for django_admin_rangefilter-0.3.16-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6439d9684cad7f4ddc4481c2d0ca0ebaadc97d8f59c19c827f078db655a35af7 |
|
MD5 | ac5dfe24fdb30fcb640419596bc2e0a8 |
|
BLAKE2b-256 | bd9050462344250b7faeb2bb39b5266b528c1b2d3d2ca28895eb1c71f3434e36 |