i have models:
class Article(models.Model):
...
class Category(models.Model):
...
parent = models.ForeignKey(Category, etc.)
...
I would like to retrieve all articles in category, also including child categories to the bitter end.
Ex:
Cat_1
\-Cat_2
\-Cat_3
\-Cat_4 (article_1)
\-Cat3a (article_2)
How to build a query for Cat_1 so as to obtain article_1 and article_2?
Idea is:
I hope this can help.