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

Uploaded Source

File details

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

File metadata

  • Download URL: django-admin-rangefilter-jalali-0.4.2.7.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.7.tar.gz
Algorithm Hash digest
SHA256 9629184fa82987656b2399c9a1c3816e7f65b83c9243a18a70c441c557c84ada
MD5 96fe2adeb2375692015b45cf6b902936
BLAKE2b-256 8539bafff9e6e9c0a393b5a717de2b9b146edaa6440cc89a7f94cbc9559b0467

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