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.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 674f12eeffc6eaf87d80685685778631fed7c3ba44e3352ce17c88f1eb7dead6 |
|
MD5 | 5f3bea48536c76c51e34a6c3ad1309c0 |
|
BLAKE2b-256 | 29ef88ffc901d6bfa27555c9d7d59f3ff5b98bbb33e5fd37aa3a4cd1d9d5bc52 |
Close
Hashes for django_admin_rangefilter-0.3.14-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1eb8b4431ce63941c8bff3884e330b6818df95c75220aeaa2c8953b3444a1ec7 |
|
MD5 | 4e27200e4c41231a9c9d43d7afb6f0c5 |
|
BLAKE2b-256 | 58aa882ebb517b698aff68be22cf5339252b585175cb0354dc6b6a986fa1c41b |