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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36afad058b3eff3e7bf58df3b2a1c17a4233d2659732bd44a9e0fa258036112f |
|
MD5 | baae5c9a15097e6900a411d8faeedb77 |
|
BLAKE2b-256 | ff6fac79017c95f237ac82598bfd4561e2f454a688f3cfea1322f830ecb93e70 |
Close
Hashes for django_admin_rangefilter-0.3.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07feed6d12528a1650a80acf77cbf0d5047deed5e23831a71b33033555757643 |
|
MD5 | 2deec09c265e92e2e24dcc7db9f83d81 |
|
BLAKE2b-256 | d4c16be817fa0b42419f9d167eec968ac4e4ce9945caed9fca853a0178e8e549 |