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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e656c6499ed47d5babe9e1a0e70e9de7e33bf4363b49b9818b4dae0ab4f5e77 |
|
MD5 | 2cb93327d099c259a277cc0bdab08fa9 |
|
BLAKE2b-256 | f29a3e0741532aed27b684e26a151a2d593d635f236a479d9251be85aa4cd83d |
Close
Hashes for jalali_django_admin_rangefilter-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3208e9092566d9eb128993d95e5ac53ff06f1db220cc939cffb60d7efddc3a9e |
|
MD5 | 0b879a20916b497dd206f23e3002973f |
|
BLAKE2b-256 | f26a36e485034317081477f253c2c32bba8607b463d0a61d936969175fdf32b4 |