Skip to main content

django-horizontal-list-filter

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

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

Metadata

Release files for django-horizontal-list-filter 0.2.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-horizontal-list-filter 0.2.10
File Size Uploaded Provenance Actions
django_horizontal_list_filter-0.2.10.tar.gz 9.0 kB Without provenance Details for django_horizontal_list_filter-0.2.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-horizontal-list-filter 0.2.10
File Interpreter ABI Platform Actions
django_horizontal_list_filter-0.2.10-py3-none-any.whl Python 3 none any Details for django_horizontal_list_filter-0.2.10-py3-none-any.whl

Total release size: 20.1 kB

Release files / django_horizontal_list_filter-0.2.10.tar.gz

Download URL django_horizontal_list_filter-0.2.10.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2113be0a32975761d3b66467f613ca7e148b26c2dc11c5cb74d7cb747b8e0c62
BLAKE2b-256 checksum
How to use checksums
d0fc5bca1265053473a03c13404f41405222fc6e0e9bde1a08964a9e4a82faae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Release files / django_horizontal_list_filter-0.2.10-py3-none-any.whl

Download URL django_horizontal_list_filter-0.2.10-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bea173960b3ad9552e4f84ecb2f3b0bb5e217bb21d90f13489a4fee9e09e8b3d
BLAKE2b-256 checksum
How to use checksums
ee97535dd82e352bf866ef20bf38b7b898e239d2f30429f2c9b5f112ea6efcad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.12

Security for django-horizontal-list-filter 0.2.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page