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
from .models import Post
@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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc9965135e3fb18c7c379c38db3e655356a8f7e8260b6dd38d97817394995a8d |
|
MD5 | 27fc85535198ddbc5f90fb0e8b6c51a3 |
|
BLAKE2b-256 | 18fc1356e390890c9dc9304af798bb0485f3ab019bcd24efcd6c09b26383f856 |
Close
Hashes for django_admin_rangefilter-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9db9f956f7a4610cf92b4d81d5d02bbf43f867887b5cb83665a8fad21b80a33 |
|
MD5 | cb53b5ef6b36c8d48407c859c2a6808e |
|
BLAKE2b-256 | 29250202cd32a925a63884ebc5266007e4b3cfe06f36616b11618e951d965db9 |