Re: Backwards relation not showing up via related_name in inherited models

2013-10-28 Thread Daniel Roseman
On Monday, 28 October 2013 15:11:24 UTC, Joshua Orvis wrote: > Thank you for responding, that's extremely helpful. I'm still failing to > query against it though. How would I implement a query for the > get_children() method in the example above? That is, for any given > instance of FlowBlue

Re: Backwards relation not showing up via related_name in inherited models

2013-10-28 Thread Joshua Orvis
Thank you for responding, that's extremely helpful. I'm still failing to query against it though. How would I implement a query for the get_children() method in the example above? That is, for any given instance of FlowBlueprint how do I get all objects with a relation to it? On Monday, Octo

Re: Backwards relation not showing up via related_name in inherited models

2013-10-28 Thread Daniel Roseman
On Monday, 28 October 2013 07:29:39 UTC, Joshua Orvis wrote: > I'm using Django 1.6 RC1 and Python 3.3 with the following models: > > class StepBlueprint(models.Model): > parents = models.ManyToManyField('self', blank=True, null=True, > related_name='children') > name = models.CharField

Backwards relation not showing up via related_name in inherited models

2013-10-28 Thread Joshua Orvis
I'm using Django 1.6 RC1 and Python 3.3 with the following models: class StepBlueprint(models.Model): parents = models.ManyToManyField('self', blank=True, null=True, related_name='children') name = models.CharField( max_length=100 ) def __str__(self): return self.name clas