Skip to main content

django-admin-rangefilter app, add the filter by a custom date range on the admin UI.

Project description

https://travis-ci.org/silentsokolov/django-admin-rangefilter.svg?branch=master https://codecov.io/gh/silentsokolov/django-admin-rangefilter/branch/master/graph/badge.svg

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.

https://raw.githubusercontent.com/silentsokolov/django-admin-rangefilter/master/docs/images/screenshot.png

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

django-admin-rangefilter-jalali-0.4.3.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

django_admin_rangefilter_jalali-0.4.3.0-py2.py3-none-any.whl (12.9 kB view details)

Uploaded Python 2 Python 3

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

Hashes for django-admin-rangefilter-jalali-0.4.3.0.tar.gz
Algorithm Hash digest
SHA256 035efb0b4aca1988fdc6df8634f3669a202fe8f43062ec8abd456e0dbdd77760
MD5 1bbd800ac73a8d2529284cc3172d00ca
BLAKE2b-256 d7d39c1b95124ecd26d9540784b18fd9882581c869b4a792b8ea8250ec189c03

See more details on using hashes here.

File details

Details for the file django_admin_rangefilter_jalali-0.4.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_admin_rangefilter_jalali-0.4.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e7643197aac25b163551d955e0ee4ea5f85d8b2cc9cbea43d39b192e83b6724c
MD5 75fd633f8bfb962340debbf79b93c693
BLAKE2b-256 7ddf6af59f57cad61553bff4d84c9da9305826ffe257b3d71c44c66e10dc2bbf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page