On Nov 28, 2007 11:30 PM, Oleg Broytmann wrote:
On Wed, Nov 28, 2007 at 11:15:29PM +0100, Petr Jake?? wrote:
> *Example given on the web is:*
>     for contact in customer.contacts:
>         print ' ', contact.phoneNumber
>
> but my feeling is it should be something like:
>
>     for contact in Contact.select(Contact.q.customer.id==customer.id):
>         print ' ', sale.aged

  MultipleJoin or RelatedJoin do this automagically, so you don't need to.

But there is not MultipleJoin or RelatedJoin in the given example ....

Petr



Oleg.
--
    Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
          Programmers don't die, they just GOSUB without RETURN.