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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-mptt-simple-listfilters-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc513839bf44c94d1b1d9c64dcb10bc3d7148c93c669f344872620ef34545666 |
|
MD5 | 7d49e5207b479e4edca89d2256cb5412 |
|
BLAKE2b-256 | 98583aea23f7240f618d0136d848527da13feed89d1b31888b57c7ba59fecb52 |