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


Release history Release notifications

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

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page