jalali-django-admin-rangefilter app, add the filter by a custom date range on the admin UI.
Project description
jalali-django-admin-rangefilter
This is a multilingual date range filter for django admin and it is inspired by django-admin-rangefilter.
To see the jalali calendar, make sure that request's LANGUAGE_CODE contains 'fa' ('fa' for Farsi).
Requirements
- Python 3.5+
- Django 3.0+
Installation
Use your favorite Python package manager to install the app from PyPI, e.g.
Example:
pip install jalali-django-admin-rangefilter
Add rangefilter2
to INSTALLED_APPS
:
Example:
INSTALLED_APPS = (
...
'rangefilter2',
...
)
Example usage in admin
from django.contrib import admin
from rangefilter2.filter import DateRangeFilter
from .models import Post
@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
list_filter = (
('created_at', DateRangeFilter),
)
[Unreleased]
[0.1.0] - 2020-03-05
Added
- Initial commit
[0.1.2] - 2020-03-23
Fixed
- Multiple filters in a page previously didn't work
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file jalali_django_admin_rangefilter-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: jalali_django_admin_rangefilter-0.1.2-py3-none-any.whl
- Upload date:
- Size: 214.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7bd89f0d6634b1e78f4bb07cedc9e7a769e7ebcc45d4a71f4d2a940ec87c907b
|
|
MD5 |
f4941489180d573796792ec21fe91998
|
|
BLAKE2b-256 |
ed849b2afb26d1e6a3259935d710b5a76c298719bcd029e451e9e7cdf8be9817
|