Django
I have next models:
class Group(models.Model): name = models.CharField(max_length=100) parent_group = models.ManyToManyField(\"self\", bla
Try this:
block in group.block_set.all()
Use it like a Manager. If you want all the objects then call the all() method.
all()