django-admin-rangefilter app, add the filter by a custom date range on the admin UI.
Project description
django-admin-rangefilter-jalali
# Note django 1.8 not working pls w8 to fix it
django-admin-rangefilter-jalali app, add the filter by a custom jdate / jdatetime 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-jalali
Add rangefilter_jalali to INSTALLED_APPS:
Example:
INSTALLED_APPS = (
...
'django_jalali',
'rangefilter_jalali',
...
)
Example usage
In admin
from django.contrib import admin
from rangefilter_jalali.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
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
File details
Details for the file django-admin-rangefilter-jalali-0.4.3.0.tar.gz
.
File metadata
- Download URL: django-admin-rangefilter-jalali-0.4.3.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/42.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 035efb0b4aca1988fdc6df8634f3669a202fe8f43062ec8abd456e0dbdd77760 |
|
MD5 | 1bbd800ac73a8d2529284cc3172d00ca |
|
BLAKE2b-256 | d7d39c1b95124ecd26d9540784b18fd9882581c869b4a792b8ea8250ec189c03 |
File details
Details for the file django_admin_rangefilter_jalali-0.4.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_admin_rangefilter_jalali-0.4.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/42.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7643197aac25b163551d955e0ee4ea5f85d8b2cc9cbea43d39b192e83b6724c |
|
MD5 | 75fd633f8bfb962340debbf79b93c693 |
|
BLAKE2b-256 | 7ddf6af59f57cad61553bff4d84c9da9305826ffe257b3d71c44c66e10dc2bbf |