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.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a0ee0d997de1d2521092d0b18843691a631ee69d69c3e29693249394ee2a12b |
|
MD5 | 7b75a74e5e7e4aa2b90c315d2d0c859d |
|
BLAKE2b-256 | 64e6f7b3cde6c19b86a12912a1269404d9d08229eacd76aeff7e33314d7a85fe |
Close
Hashes for django_admin_rangefilter-0.3.15-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81c4396988849f03907e332a46695dc5d41a7a2aadc54f095f1a1cddcd819bd3 |
|
MD5 | 40b77db8a836596c4911fe626dbf02b2 |
|
BLAKE2b-256 | 610a20ba1166f088dcc8891353851f2a91105129c8c32268b7cb732f1c1d487a |