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.5
- Fix filter block style that using ul tag.
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
Close
Hashes for django-horizontal-list-filter-0.2.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 398b46459fdbefe910244ec8faf2cab459dd6f59e7a90a1409dbda224100227d |
|
MD5 | 1c34ab8dc490317e3184e86877c028bf |
|
BLAKE2b-256 | 48b8ea30d9fb2267e99a4b1e983006262b2c662fb188dcd94337a6822c4dea40 |
Close
Hashes for django_horizontal_list_filter-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8edc0c16092848e001553835f263641ac8d55b4e5157cc6f58c0d728f5f62721 |
|
MD5 | 4dda07fc04ea59e6da1855aa1c055bee |
|
BLAKE2b-256 | 6392d5ffabc2f6e3b038a2b90463bfa59b88b247ae14389254143c3f54526467 |