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_horizontal_list_filter',
'mptt', # optional
...
]
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.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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5df4e13082558a0bc2a8d37bb973f91230e86353d5d400cd0a0d4a29382c1033 |
|
MD5 | 61b88b2f887f4cfab4ffd4c3fbe5e661 |
|
BLAKE2b-256 | ae50dfe354a46041e05cea214e2d9db4857979dbe4fa4cea27bead9e7d830eae |
Close
Hashes for django_horizontal_list_filter-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1809d58a20f3bfc5881ea789a175fb633f33b66044e2734bf5cbe1b5c9d5404 |
|
MD5 | c819529c0c77de254808af186c5aa860 |
|
BLAKE2b-256 | 2d6ecbe80ff6dcc980e3fa2a48a0005385dfcbe538c800ba828e35e2da926acb |