通过日历自由选择时间范围。
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
- Download URL: django-admin-daterange-listfilter-0.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bbe3d1c6f7626d25abfa78f409898b62e494b46f92721ad79f8e518647e3ed0 |
|
MD5 | 271d9dd8074fd681d29a9e333135fd9c |
|
BLAKE2b-256 | 1348ea75415ddd40ab60a48e0685b481fcd11277abf4bc012a65a62543a27220 |
File details
Details for the file django_admin_daterange_listfilter-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: django_admin_daterange_listfilter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ed59509201c0a5a1fbf4f922a98290409202f04c4b83c0e3a61b1697578ac5b |
|
MD5 | 9a0f3304d648f6df345f3ebe0cf965f0 |
|
BLAKE2b-256 | 7c749ae76795a89dcfce09922376f7831a2dfa66c1274fef7bdb282780862105 |