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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67012d2d3bdb26082293685ebabfe673a01961be961bbe66035037bea92d3d2b |
|
MD5 | 3faa4f7e3032d60b8a45477cbf99a0bd |
|
BLAKE2b-256 | 5f1be65e86a16472d5e83824b9e3c3057aaf02708336a3bd6d77f62c85354b8e |
Close
Hashes for django_admin_rangefilter-0.3.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cd6088f08bb06d1fd21e473fe200c63a3f0060df10cbc3040ae4de6b6b3b23d |
|
MD5 | 4e941e5e604bc4f4818c892fbc70df6e |
|
BLAKE2b-256 | 2c9550e238392f7085e482dc8caa13918ad00225f5ece5e142e60832e6229c13 |