django-admin-daterange-listfilter


Namedjango-admin-daterange-listfilter JSON
Version 0.1.5 PyPI version JSON
download
home_pageNone
Summary通过日历自由选择时间范围。
upload_time2024-05-12 13:49:48
maintainerZhan YuCong
docs_urlNone
authorZhan YuCong
requires_pythonNone
licenseMIT
keywords django admin extentions daterange listfilter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # django-admin-daterange-listfilter

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

## 使用方法

*settings.py*

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

*admin.py*

```python
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

- 版本首发。

### v0.1.4

- 添加中文i18n翻译。

### v0.1.5

- 添加default_app_config以增强兼容性。



            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "django-admin-daterange-listfilter",
    "maintainer": "Zhan YuCong",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "django admin extentions, daterange listfilter",
    "author": "Zhan YuCong",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/75/b3/f861fb3fd84c75d39ebd1613ac4ae15576915e8fb477d0a951fd15fb7112/django-admin-daterange-listfilter-0.1.5.tar.gz",
    "platform": null,
    "description": "# django-admin-daterange-listfilter\n\n\u901a\u8fc7\u65e5\u5386\u81ea\u7531\u9009\u62e9\u65f6\u95f4\u8303\u56f4\u3002\n\n## \u4f7f\u7528\u65b9\u6cd5\n\n*settings.py*\n\n```python\nINSTALLED_APPS = [\n    ...\n    \"django_static_jquery_ui\",\n    \"django_middleware_global_request\",\n    \"django_listfilter_media_extension\",\n    \"django_admin_daterange_listfilter\",\n    ...\n]\n```\n\n*admin.py*\n\n```python\nfrom django.contrib import admin\nfrom django_admin_daterange_listfilter.filters import DateRangeFilter\nfrom .models import Category\n\n\nclass CategoryAdmin(admin.ModelAdmin):\n    list_display = [\n        \"title\",\n        \"add_time\",\n        \"mod_time\",\n    ]\n    list_filter = [\n        (\"add_time\", DateRangeFilter),\n        (\"mod_time\", DateRangeFilter),\n    ]\n\n\nadmin.site.register(Category, CategoryAdmin)\n```\n\n## \u7248\u672c\u8bb0\u5f55\n\n### v0.1.0\n\n- \u7248\u672c\u9996\u53d1\u3002\n\n### v0.1.4\n\n- \u6dfb\u52a0\u4e2d\u6587i18n\u7ffb\u8bd1\u3002\n\n### v0.1.5\n\n- \u6dfb\u52a0default_app_config\u4ee5\u589e\u5f3a\u517c\u5bb9\u6027\u3002\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "\u901a\u8fc7\u65e5\u5386\u81ea\u7531\u9009\u62e9\u65f6\u95f4\u8303\u56f4\u3002",
    "version": "0.1.5",
    "project_urls": null,
    "split_keywords": [
        "django admin extentions",
        " daterange listfilter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9b861407018df91c9c212b875f94d3840d3db6121aab222dd93399a271314def",
                "md5": "8c258f8e05f0c9a098c84a23d0004010",
                "sha256": "9b40d8107df5ec6683d26fac6d9718fe47eb33ed2f9ca414ccdf58a06158b76a"
            },
            "downloads": -1,
            "filename": "django_admin_daterange_listfilter-0.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8c258f8e05f0c9a098c84a23d0004010",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 12020,
            "upload_time": "2024-05-12T13:49:46",
            "upload_time_iso_8601": "2024-05-12T13:49:46.979393Z",
            "url": "https://files.pythonhosted.org/packages/9b/86/1407018df91c9c212b875f94d3840d3db6121aab222dd93399a271314def/django_admin_daterange_listfilter-0.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "75b3f861fb3fd84c75d39ebd1613ac4ae15576915e8fb477d0a951fd15fb7112",
                "md5": "01489e0dd5103a561325acfbdba013d9",
                "sha256": "87264b12c698d6477e2d3551a48baec4ceefefd019e94df91958868d04cfdfda"
            },
            "downloads": -1,
            "filename": "django-admin-daterange-listfilter-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "01489e0dd5103a561325acfbdba013d9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8988,
            "upload_time": "2024-05-12T13:49:48",
            "upload_time_iso_8601": "2024-05-12T13:49:48.846322Z",
            "url": "https://files.pythonhosted.org/packages/75/b3/f861fb3fd84c75d39ebd1613ac4ae15576915e8fb477d0a951fd15fb7112/django-admin-daterange-listfilter-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-12 13:49:48",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "django-admin-daterange-listfilter"
}
        
Elapsed time: 0.21998s