On Sep 20, 4:24 am, adelaide_mike wrote:
> I have a multi-table model, each table related to the next by a one to
> many foreign key.
>
> I wish to do:
>
> q = Child.objects.filter(date__gte=startdate).order_by
> ('parent.grandparent.greatgrandparent__name')
>
> This raises an exception no such c
I have a multi-table model, each table related to the next by a one to
many foreign key.
I wish to do:
q = Child.objects.filter(date__gte=startdate).order_by
('parent.grandparent.greatgrandparent__name')
This raises an exception no such column:
parent.grandparent.greatgrandparent__name
Is ther
2 matches
Mail list logo