Move list filter to above of the changelist in django admin site.
Project description
django-horizontal-list-filter
Move list filter to above of the changelist in django admin site.
Install
pip install django-horizontal-list-filter
Usage
pro/settings.py
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
toselect
.
Preview
Releases
v0.2.4
- Fix filter label style if using tag h3.
- Add is_using_django_horizontal_list_filter flag into request.
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.0
- Use
DJANGO_HORIZONTAL_LIST_FILTER_USE_SELECT2=True
inpro/settings.py
to turn all simple-select-box to select2-style-select-box.
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.1.1
- Fix cl context variable not provided problem.
v0.1.0
- First release.
Project details
Release history Release notifications | RSS feed
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-horizontal-list-filter-0.2.4.tar.gz
.
File metadata
- Download URL: django-horizontal-list-filter-0.2.4.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f58cbbadaa5c00bf5456afddc64e90b1b2f0d3c7ae5453856c5f9b2fa6ed9eb |
|
MD5 | 5969b7696905f97390f27b9867900be5 |
|
BLAKE2b-256 | c41c100561d83fe34acdf688fc78ffaa99cc7a30de968e56c8f682e800fad699 |
File details
Details for the file django_horizontal_list_filter-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: django_horizontal_list_filter-0.2.4-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71f405a4c7558068f3cb9e6166493b164852fcdb97f94bf39a66b49f0b54d4f7 |
|
MD5 | b533c2f5855793b202247060ae876461 |
|
BLAKE2b-256 | cd853900d9372c24e44c8da865e3e3751d02f9fce5a4baea8ecaa5e78b8b8f02 |