get_descendants for a list of nodes
Later versions of mptt already have this function built into the object manager. So the solution to this is just as follows:
Model.objects.get_queryset_descendants(my_queryset, include_self=False)
Later versions of mptt already have this function built into the object manager. So the solution to this is just as follows:
Model.objects.get_queryset_descendants(my_queryset, include_self=False)
0 Comments