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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file django_mptt_simple_listfilters-0.1.2.tar.gz.

File metadata

File hashes

Hashes for django_mptt_simple_listfilters-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c438193806eb330450361f68e4bb509c2314fa15df752a25e88cbbbbda1439de
MD5 e095774dd2757434b78a8f2a3ccca540
BLAKE2b-256 5fd27595916289da8ada3391d46531a88ee023b8bd1852a86f78ca703193bcb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_mptt_simple_listfilters-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6818af97cd7f8fb00a896031e6b8170f99d8c8693f75b0534a65bf53fad44df2
MD5 2d1fd2413e5252f4c413a105eae5f14c
BLAKE2b-256 0b2ffe62f8bb9542f96aac6fc430c772d82914f035eb188be7d6d1506a995daa

See more details on using hashes here.

Supported by

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