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.

v0.1.2

  • Doc update.

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.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for django-mptt-simple-listfilters-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8d34306de42ceadeefed69b996119e79301961102b7e60b34654516f2a3b1eb0
MD5 4e8047eed1ce95dd57aa0971483bbc6b
BLAKE2b-256 0021224c3789bc3d2417bf6203712b1569e381dd1f45aaff8565be1067f773b8

See more details on using hashes here.

Provenance

File details

Details for the file django_mptt_simple_listfilters-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_mptt_simple_listfilters-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ac66b238e685b94978d1a39da1b8630155fadc93ec0f512040cd7d5d7856c4bc
MD5 080a36fb8d7aa15f4edd874689d989c1
BLAKE2b-256 0aa22872d0c1b4bf9a03bce1f5b3bd5c2598d957fe4f6b5d49fc0e3a78105283

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