Hi, I have a model like so:
class Activity(models.Model):
title = models.CharField(max_length=200)
summary = models.TextField(null=True, blank=True)
tasks = models.ManyToManyField('self', symmetrical=False, null=True, blank=True)
It works like this, an activity can be linked to itself and the parent activity is called an 'Activity' and the child activity/activities will be called 'Task/Tasks'
How do I filter the model to get all the 'Activities' and How do I filter the model to get all the 'Tasks' ?
Thanks for all the help.