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.

Files for django-mptt-simple-listfilters, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django-mptt-simple-listfilters-0.1.0.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page