I'm using django-mptt for a Article model in my Django application. If I want to get all Articles which are set to for example hidden, I could do
Article.objects.filter(hidden=False)
but that would break the mptt-tree. How can I filter on my queryset in such a way that not only does it exclude all hidden articles, but also the childs of those nodes and that way maintain the integrity of the tree so that I still can use the tree_info template tag?