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.3+
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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a900de10657fa7c2b08e87d95ca23a1f2fd4194251dd824e50e8b6177d45216a |
|
MD5 | 9ea16bfa2fafe2c2aa1c886c46188f29 |
|
BLAKE2b-256 | 7a735f23bee9e5f740bc0cedac2ed02bcfd666ed56f11c4208700268c7cd03cb |
Close
Hashes for django_admin_rangefilter-0.3.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39e00a840c77ccf06d4a71597a3f393f91db242abb18733caaea88ffa1788f59 |
|
MD5 | 402a4aa9ff4e8513ce5cd56f3a3f2bbd |
|
BLAKE2b-256 | f2dbd759fdd81c59466a4a0623b8991f0cd8310df82cd1aa60ea1dbde10a817f |