django-horizontal-list-filter


Namedjango-horizontal-list-filter JSON
Version 0.2.9 PyPI version JSON
download
home_page
SummaryMove list filter to above of the changelist in django admin site.
upload_time2023-09-14 12:49:36
maintainerZheng JiaHui
docs_urlNone
authorZheng JiaHui
requires_python
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

Move list filter to  above of the changelist in django admin site.


## 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`.

## Preview

![django-horizontal-list-filter-preview](https://github.com/zencore-dobetter/pypi-images/raw/main/django-horizontal-list-filter/django-horizontal-list-filter-preview.png)


## 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.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "django-horizontal-list-filter",
    "maintainer": "Zheng JiaHui",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "zhengjiahui@zencore.cn",
    "keywords": "django admin extentions,django horizontal list filter",
    "author": "Zheng JiaHui",
    "author_email": "zhengjiahui@zencore.cn",
    "download_url": "https://files.pythonhosted.org/packages/df/27/59f93e7258aff81222a75141a03348e62e3da8e49b84a599eec968196d49/django-horizontal-list-filter-0.2.9.tar.gz",
    "platform": null,
    "description": "# django-horizontal-list-filter\n\nMove list filter to  above of the changelist in django admin site.\n\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## Preview\n\n![django-horizontal-list-filter-preview](https://github.com/zencore-dobetter/pypi-images/raw/main/django-horizontal-list-filter/django-horizontal-list-filter-preview.png)\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",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Move list filter to  above of the changelist in django admin site.",
    "version": "0.2.9",
    "project_urls": null,
    "split_keywords": [
        "django admin extentions",
        "django horizontal list filter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0cb4337cdf76656b4dac17f652c855815b0509d14cf07db37425f6fc7bf91681",
                "md5": "695f11cb361b2f284caf082754c65e58",
                "sha256": "2bfe5b9c6d951f49962e4cb28937becda0aa424bb17598cfc08e5661830b479d"
            },
            "downloads": -1,
            "filename": "django_horizontal_list_filter-0.2.9-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "695f11cb361b2f284caf082754c65e58",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10981,
            "upload_time": "2023-09-14T12:49:34",
            "upload_time_iso_8601": "2023-09-14T12:49:34.708282Z",
            "url": "https://files.pythonhosted.org/packages/0c/b4/337cdf76656b4dac17f652c855815b0509d14cf07db37425f6fc7bf91681/django_horizontal_list_filter-0.2.9-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "df2759f93e7258aff81222a75141a03348e62e3da8e49b84a599eec968196d49",
                "md5": "fd46968c36b7814df73c6c74e5d5331f",
                "sha256": "52589952ebc15e23a41ff352b328ae02a56a3da94397ae524ef5a95596811860"
            },
            "downloads": -1,
            "filename": "django-horizontal-list-filter-0.2.9.tar.gz",
            "has_sig": false,
            "md5_digest": "fd46968c36b7814df73c6c74e5d5331f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8778,
            "upload_time": "2023-09-14T12:49:36",
            "upload_time_iso_8601": "2023-09-14T12:49:36.347472Z",
            "url": "https://files.pythonhosted.org/packages/df/27/59f93e7258aff81222a75141a03348e62e3da8e49b84a599eec968196d49/django-horizontal-list-filter-0.2.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-14 12:49:36",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "django-horizontal-list-filter"
}
        
Elapsed time: 0.13486s