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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb50dfc47c52062d665595dda5e62a9d0f7c995f2fa3106bc9edfc8a2a58d63f |
|
MD5 | 2d47760e7eba5e121ede562bbb95ac0e |
|
BLAKE2b-256 | 31c61865d8b8208edbb91d6b0f3a8cc33f9962b997942a4b72529173b8ba5443 |
Close
Hashes for django_admin_rangefilter-0.3.12-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2056fd2c0268e7415a12d0324a7e50ea9388e085ee2aad3d0602595f26075a73 |
|
MD5 | 999f59fbcd7082b0293ad40dd2a45883 |
|
BLAKE2b-256 | a2f12cd9c81916a6bcf2302b4834b6f2000299c82098ac66edf03c52833a5696 |