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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_mptt_simple_listfilters-0.1.2.tar.gz.
File metadata
- Download URL: django_mptt_simple_listfilters-0.1.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c438193806eb330450361f68e4bb509c2314fa15df752a25e88cbbbbda1439de
|
|
| MD5 |
e095774dd2757434b78a8f2a3ccca540
|
|
| BLAKE2b-256 |
5fd27595916289da8ada3391d46531a88ee023b8bd1852a86f78ca703193bcb5
|
File details
Details for the file django_mptt_simple_listfilters-0.1.2-py3-none-any.whl.
File metadata
- Download URL: django_mptt_simple_listfilters-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6818af97cd7f8fb00a896031e6b8170f99d8c8693f75b0534a65bf53fad44df2
|
|
| MD5 |
2d1fd2413e5252f4c413a105eae5f14c
|
|
| BLAKE2b-256 |
0b2ffe62f8bb9542f96aac6fc430c772d82914f035eb188be7d6d1506a995daa
|