Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jalali-django-admin-rangefilter, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size jalali_django_admin_rangefilter-0.1.1-py3-none-any.whl (127.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size jalali-django-admin-rangefilter-0.1.1.tar.gz (94.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page