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

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 = (
    ...
    '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.2.5.tar.gz (9.5 kB view details)

Uploaded Source

File details

Details for the file django-admin-rangefilter-jalali-0.4.2.5.tar.gz.

File metadata

  • Download URL: django-admin-rangefilter-jalali-0.4.2.5.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.8

File hashes

Hashes for django-admin-rangefilter-jalali-0.4.2.5.tar.gz
Algorithm Hash digest
SHA256 1398b3cfa67c666088a756228ef0007db155001ab6b953ec1933671076bd7327
MD5 dbe15e6e37b2a84f6a4c2132c6129115
BLAKE2b-256 c5f2e142a38d9be21271da7f78715891b6c661c379a4b9c9f6648d13dd6e170e

See more details on using hashes here.

Supported by

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