django-mptt

How to get all descendants of a node with Django mptt?

How to get all descendants of a node with Django mptt? Question: I would like my categories to show all items in that category including descendant categories, so the parent category contains all items for subcategories. I have tried adding this method to my Category class in models.py def get_all_products(self): # To display all items …

Total answers: 3