Monday 21 October 2013

Django - Foreign Table Relational Mapping Queryset

def get_child_attribute_list(self, element):
    return Attribute.objects.filter(Q(element=element), Q(productattribute__product__parent=self)|Q(productattribute__product__root=self))

No comments :

Post a Comment