Skip to main content

Provides simple filters based on django-mptt's TreeRelatedFieldListFilter, e.g. ListFilterIgnoreLeafNodes and ListFilterLimitDepth.

Project description

django-mptt-simple-listfilters

Provides simple filters based on django-mptt's TreeRelatedFieldListFilter, e.g. ListFilterIgnoreLeafNodes and ListFilterLimitDepth.

Install

pip install django-mptt-simple-listfilters

Provide List Filters

  • ListFilterIgnoreLeafNodes

    Ignore all leaf nodes.

  • ListFilterLimitDepth

    Only show roots in the filter list. You can create your own filter inherit from ListFilterLimitDepth and reset the max_depth value.

  • ListFilterLimitDepth2

  • ListFilterLimitDepth3

  • ListFilterLimitDepth4

    These are shortcuts for ListFilterLimitDepth, and reset the max_depth value to 2, 3 and 4.

Usage

Use as TreeRelatedFieldListFilter.

Releases

v0.1.1

  • First release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-mptt-simple-listfilters-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file django-mptt-simple-listfilters-0.1.0.tar.gz.

File metadata

  • Download URL: django-mptt-simple-listfilters-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for django-mptt-simple-listfilters-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cc513839bf44c94d1b1d9c64dcb10bc3d7148c93c669f344872620ef34545666
MD5 7d49e5207b479e4edca89d2256cb5412
BLAKE2b-256 98583aea23f7240f618d0136d848527da13feed89d1b31888b57c7ba59fecb52

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page