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
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
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
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
4 matches
Mail list logo