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

Uploaded Source

File details

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

File metadata

  • Download URL: django-admin-rangefilter-jalali-0.4.2.8.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.8.tar.gz
Algorithm Hash digest
SHA256 578a2888bcd070e367a346f88ac9ba928d3c8e585a55330edb6d2aee04ac9ae7
MD5 d375895d66e10405dbb8ad71bdc557ff
BLAKE2b-256 f366553e3473c21ffb68a6396ed3ffd00caa2fcbbcbd95a72914240b848476c9

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