semvec/pypi-packages huggingface dataset:
wagtail-admin-parent-filter 2019.1.20
Wagtail admin Page parent filter
Keywords: wagtail admin filter

[![](https://img.shields.io/pypi/pyversions/wagtail-admin-parent-filter.svg?longCache=True)](https://pypi.org/project/wagtail-admin-parent-filter/)

#### Install
```bash
$ [sudo] pip install wagtail-admin-parent-filter
```

#### Classes
`wagtail_admin_parent_filter.ParentFilter` - Wagtail admin Page parent filter

attr|`__doc__`
-|-
`count`|show childs count. default - False
`items`|initial items
`model`|queryset model
`parent_model`|filter model
`title`|title

#### Examples
`admin.py`
```python
from wagtail_admin_parent_filter import ParentFilter


class BlogFilter(ParentFilter):
    title = "Some title"
    model = BlogPage
    parent_model = BlogCategoryPage
    count = True


class BlogAdmin(ModelAdmin):
    model = BlogPage
    list_filter = (BlogFilter,)


```

<p align="center"><a href="https://pypi.org/project/readme-md/">readme-md</a> - README.md generator</p>