Skip to main content

通过日历自由选择时间范围。

Project description

django-admin-daterange-listfilter

通过日历自由选择时间范围。

使用方法

settings.py

INSTALLED_APPS = [
    ...
    "django_static_jquery_ui",
    "django_middleware_global_request",
    "django_listfilter_media_extension",
    "django_admin_daterange_listfilter",
    ...
]

admin.py

from django.contrib import admin
from django_admin_daterange_listfilter.filters import DateRangeFilter
from .models import Category


class CategoryAdmin(admin.ModelAdmin):
    list_display = [
        "title",
        "add_time",
        "mod_time",
    ]
    list_filter = [
        ("add_time", DateRangeFilter),
        ("mod_time", DateRangeFilter),
    ]


admin.site.register(Category, CategoryAdmin)

版本记录

v0.1.0

  • 版本首发。

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

Built Distribution

File details

Details for the file django-admin-daterange-listfilter-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-admin-daterange-listfilter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9bbe3d1c6f7626d25abfa78f409898b62e494b46f92721ad79f8e518647e3ed0
MD5 271d9dd8074fd681d29a9e333135fd9c
BLAKE2b-256 1348ea75415ddd40ab60a48e0685b481fcd11277abf4bc012a65a62543a27220

See more details on using hashes here.

File details

Details for the file django_admin_daterange_listfilter-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_admin_daterange_listfilter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ed59509201c0a5a1fbf4f922a98290409202f04c4b83c0e3a61b1697578ac5b
MD5 9a0f3304d648f6df345f3ebe0cf965f0
BLAKE2b-256 7c749ae76795a89dcfce09922376f7831a2dfa66c1274fef7bdb282780862105

See more details on using hashes here.

Supported by

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