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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91e28eb0e85546cc3392032b4b5353b2520410fa1910eec065bb6920354f594c |
|
MD5 | d2cdf3e1713148cf1caa0e3b7e2d5ea2 |
|
BLAKE2b-256 | c686a9bba114b05faa7b4274a267a09741e7eb2f309752cb1831c52b17c0c707 |
Close
Hashes for django_admin_rangefilter-0.3.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b3bb80bd07d64d031be5c5c9c82f7de5fa64fd3e5a0efff0d169c98751ff56a |
|
MD5 | 9c9e85d51df73afd57bb2f5eb5eefaf7 |
|
BLAKE2b-256 | d1b685f4f38f15ea69d241cd652f80815f4456992f0011c9def9ad07c7cd7e7d |