• Home
  • Django
  • Django Mptt - How to deal with Models and views

Django Mptt - How to deal with Models and views

linkaiyi
Follow

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)
Object has 0 attachments

Was this article helpful?

This article is viewed 10 times!

Recent Viewed Articles

0 Comments

Leave a Comment

Support