django-horizontal-list-filter


Namedjango-horizontal-list-filter JSON
Version 0.2.10 PyPI version JSON
download
home_pageNone
Summary在Django管理站点中,将列表筛选器移动到变更列表上方,并且采用横向布局样式。
upload_time2025-10-24 04:23:37
maintainerrRR0VrFP
docs_urlNone
authorrRR0VrFP
requires_pythonNone
licenseMIT
keywords django admin extentions django horizontal list filter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # django-horizontal-list-filter

在Django管理站点中,将列表筛选器移动到变更列表上方,并且采用横向布局样式。

## Install

```shell
pip install django-horizontal-list-filter
```

## Usage

**pro/settings.py**

```python
INSTALLED_APPS = [
    ...
    'django_simple_tags',
    'django_middleware_global_request',
    'django_horizontal_list_filter',
    'mptt', # optional
    ...
]

MIDDLEWARE = [
    ...
    'django_middleware_global_request.middleware.GlobalRequestMiddleware',
    ...
]

DJANGO_HORIZONTAL_LIST_FILTER_USE_SELECT2 = True
```

- If using mptt, make sure that django_horizontal_list_filter is above mptt, because django_horizontal_list_filter is override mptt's template.
- If using some other third part app provides customized list filter, you may need to rewrite the filter's template to turn the result html from `ul` to `select`.


## Releases

### v0.1.0

- First release.

### v0.1.1

- Fix cl context variable not provided problem.

### v0.1.2

- Remove django_static_jquery3 depends. Inject our css&js into ModelAdmin.media in apps.ready step.
- Add app_requires.
- Add License file.

### v0.2.0

- Use `DJANGO_HORIZONTAL_LIST_FILTER_USE_SELECT2=True` in `pro/settings.py` to turn all simple-select-box to select2-style-select-box.

### v0.2.2

- Add field name as select box's class name.
- Fix the problem that the select boxes' width fixed to 150px problem.

### v0.2.4

- Fix filter label style if using tag h3.
- Add is_using_django_horizontal_list_filter flag into request.

### v0.2.6

- Fix filter block style that using ul tag.

### v0.2.7

- Add max-width css style to select box.

### v0.2.9

- Doc update.

### v0.2.10

- Doc update.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "django-horizontal-list-filter",
    "maintainer": "rRR0VrFP",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "django admin extentions, django horizontal list filter",
    "author": "rRR0VrFP",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/d0/fc/5bca1265053473a03c13404f41405222fc6e0e9bde1a08964a9e4a82faae/django_horizontal_list_filter-0.2.10.tar.gz",
    "platform": null,
    "description": "# django-horizontal-list-filter\n\n\u5728Django\u7ba1\u7406\u7ad9\u70b9\u4e2d\uff0c\u5c06\u5217\u8868\u7b5b\u9009\u5668\u79fb\u52a8\u5230\u53d8\u66f4\u5217\u8868\u4e0a\u65b9\uff0c\u5e76\u4e14\u91c7\u7528\u6a2a\u5411\u5e03\u5c40\u6837\u5f0f\u3002\n\n## Install\n\n```shell\npip install django-horizontal-list-filter\n```\n\n## Usage\n\n**pro/settings.py**\n\n```python\nINSTALLED_APPS = [\n    ...\n    'django_simple_tags',\n    'django_middleware_global_request',\n    'django_horizontal_list_filter',\n    'mptt', # optional\n    ...\n]\n\nMIDDLEWARE = [\n    ...\n    'django_middleware_global_request.middleware.GlobalRequestMiddleware',\n    ...\n]\n\nDJANGO_HORIZONTAL_LIST_FILTER_USE_SELECT2 = True\n```\n\n- If using mptt, make sure that django_horizontal_list_filter is above mptt, because django_horizontal_list_filter is override mptt's template.\n- If using some other third part app provides customized list filter, you may need to rewrite the filter's template to turn the result html from `ul` to `select`.\n\n\n## Releases\n\n### v0.1.0\n\n- First release.\n\n### v0.1.1\n\n- Fix cl context variable not provided problem.\n\n### v0.1.2\n\n- Remove django_static_jquery3 depends. Inject our css&js into ModelAdmin.media in apps.ready step.\n- Add app_requires.\n- Add License file.\n\n### v0.2.0\n\n- Use `DJANGO_HORIZONTAL_LIST_FILTER_USE_SELECT2=True` in `pro/settings.py` to turn all simple-select-box to select2-style-select-box.\n\n### v0.2.2\n\n- Add field name as select box's class name.\n- Fix the problem that the select boxes' width fixed to 150px problem.\n\n### v0.2.4\n\n- Fix filter label style if using tag h3.\n- Add is_using_django_horizontal_list_filter flag into request.\n\n### v0.2.6\n\n- Fix filter block style that using ul tag.\n\n### v0.2.7\n\n- Add max-width css style to select box.\n\n### v0.2.9\n\n- Doc update.\n\n### v0.2.10\n\n- Doc update.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "\u5728Django\u7ba1\u7406\u7ad9\u70b9\u4e2d\uff0c\u5c06\u5217\u8868\u7b5b\u9009\u5668\u79fb\u52a8\u5230\u53d8\u66f4\u5217\u8868\u4e0a\u65b9\uff0c\u5e76\u4e14\u91c7\u7528\u6a2a\u5411\u5e03\u5c40\u6837\u5f0f\u3002",
    "version": "0.2.10",
    "project_urls": null,
    "split_keywords": [
        "django admin extentions",
        " django horizontal list filter"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ee97535dd82e352bf866ef20bf38b7b898e239d2f30429f2c9b5f112ea6efcad",
                "md5": "220d8996cb49b0238dd4021ecbc4fca0",
                "sha256": "bea173960b3ad9552e4f84ecb2f3b0bb5e217bb21d90f13489a4fee9e09e8b3d"
            },
            "downloads": -1,
            "filename": "django_horizontal_list_filter-0.2.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "220d8996cb49b0238dd4021ecbc4fca0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 11096,
            "upload_time": "2025-10-24T04:23:35",
            "upload_time_iso_8601": "2025-10-24T04:23:35.885156Z",
            "url": "https://files.pythonhosted.org/packages/ee/97/535dd82e352bf866ef20bf38b7b898e239d2f30429f2c9b5f112ea6efcad/django_horizontal_list_filter-0.2.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d0fc5bca1265053473a03c13404f41405222fc6e0e9bde1a08964a9e4a82faae",
                "md5": "b0d324498ba02a293c4c707a8a3673e0",
                "sha256": "2113be0a32975761d3b66467f613ca7e148b26c2dc11c5cb74d7cb747b8e0c62"
            },
            "downloads": -1,
            "filename": "django_horizontal_list_filter-0.2.10.tar.gz",
            "has_sig": false,
            "md5_digest": "b0d324498ba02a293c4c707a8a3673e0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8975,
            "upload_time": "2025-10-24T04:23:37",
            "upload_time_iso_8601": "2025-10-24T04:23:37.254546Z",
            "url": "https://files.pythonhosted.org/packages/d0/fc/5bca1265053473a03c13404f41405222fc6e0e9bde1a08964a9e4a82faae/django_horizontal_list_filter-0.2.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-24 04:23:37",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "django-horizontal-list-filter"
}
        
Elapsed time: 1.35340s