# django-mptt-simple-listfilters
Provides simple filters based on django-mptt's TreeRelatedFieldListFilter, e.g. ListFilterIgnoreLeafNodes and ListFilterLimitDepth.
## Install
```shell
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.
Raw data
{
"_id": null,
"home_page": "",
"name": "django-mptt-simple-listfilters",
"maintainer": "Qian ShuCong",
"docs_url": null,
"requires_python": "",
"maintainer_email": "qianshucong@zencore.cn",
"keywords": "django admin extentions,django mptt simple listfilters",
"author": "Qian ShuCong",
"author_email": "qianshucong@zencore.cn",
"download_url": "https://files.pythonhosted.org/packages/00/21/224c3789bc3d2417bf6203712b1569e381dd1f45aaff8565be1067f773b8/django-mptt-simple-listfilters-0.1.1.tar.gz",
"platform": null,
"description": "# django-mptt-simple-listfilters\n\nProvides simple filters based on django-mptt's TreeRelatedFieldListFilter, e.g. ListFilterIgnoreLeafNodes and ListFilterLimitDepth.\n\n## Install\n\n```shell\npip install django-mptt-simple-listfilters\n```\n\n## Provide List Filters\n\n- ListFilterIgnoreLeafNodes\n\n Ignore all leaf nodes.\n\n- ListFilterLimitDepth\n\n Only show roots in the filter list. You can create your own filter inherit from ListFilterLimitDepth and reset the max_depth value.\n\n- ListFilterLimitDepth2\n- ListFilterLimitDepth3\n- ListFilterLimitDepth4\n\n These are shortcuts for ListFilterLimitDepth, and reset the max_depth value to 2, 3 and 4.\n\n## Usage\n\nUse as TreeRelatedFieldListFilter.\n\n## Releases\n\n### v0.1.1\n\n- First release.\n\n### v0.1.2\n\n- Doc update.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Provides simple filters based on django-mptt's TreeRelatedFieldListFilter, e.g. ListFilterIgnoreLeafNodes and ListFilterLimitDepth.",
"version": "0.1.1",
"project_urls": null,
"split_keywords": [
"django admin extentions",
"django mptt simple listfilters"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0aa22872d0c1b4bf9a03bce1f5b3bd5c2598d957fe4f6b5d49fc0e3a78105283",
"md5": "080a36fb8d7aa15f4edd874689d989c1",
"sha256": "ac66b238e685b94978d1a39da1b8630155fadc93ec0f512040cd7d5d7856c4bc"
},
"downloads": -1,
"filename": "django_mptt_simple_listfilters-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "080a36fb8d7aa15f4edd874689d989c1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4106,
"upload_time": "2023-09-15T06:49:03",
"upload_time_iso_8601": "2023-09-15T06:49:03.439857Z",
"url": "https://files.pythonhosted.org/packages/0a/a2/2872d0c1b4bf9a03bce1f5b3bd5c2598d957fe4f6b5d49fc0e3a78105283/django_mptt_simple_listfilters-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0021224c3789bc3d2417bf6203712b1569e381dd1f45aaff8565be1067f773b8",
"md5": "4e8047eed1ce95dd57aa0971483bbc6b",
"sha256": "8d34306de42ceadeefed69b996119e79301961102b7e60b34654516f2a3b1eb0"
},
"downloads": -1,
"filename": "django-mptt-simple-listfilters-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "4e8047eed1ce95dd57aa0971483bbc6b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2979,
"upload_time": "2023-09-15T06:49:05",
"upload_time_iso_8601": "2023-09-15T06:49:05.332882Z",
"url": "https://files.pythonhosted.org/packages/00/21/224c3789bc3d2417bf6203712b1569e381dd1f45aaff8565be1067f773b8/django-mptt-simple-listfilters-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-15 06:49:05",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "django-mptt-simple-listfilters"
}