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 rangefilter
to INSTALLED_APPS
:
Example:
INSTALLED_APPS = (
...
'rangefilter',
...
)
Example usage in admin
from django.contrib import admin
from rangefilter.filter import DateRangeFilter
from .models import Post
@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
list_filter = (
('created_at', DateRangeFilter),
)
[Unreleased]
[1.0.0] - 2020-03-05
Added
- Initial commit
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 jalali-django-admin-rangefilter-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 880fc1934efcb6589024888cbe81bf4b6b82d16c9f2a1fe5b8ece76f6d225006 |
|
MD5 | bdbe9df50002226ed6bfd0f2168d22d4 |
|
BLAKE2b-256 | c2941190de9a7e52180f453476864b56c0adcfe91dc9e80d9257571f47a675f9 |
Close
Hashes for jalali_django_admin_rangefilter-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05e9d6ebe66c0297238d2ea77e600af1defb34411df4d0473dc665c69fe22b94 |
|
MD5 | ffde7d6ac8a1ba9c9afc0ed887200f4a |
|
BLAKE2b-256 | 25d8886833383f2c96f4e7b2ce379518d38c6cb0a99ecd5878b9f34e109df719 |