I am taking the table cofounder and making an inner join with auth_user and an outer join with cofounder_proposal:
cofounders = db((db.cofounder.company==company_id)&(db.cofounder.created_by==auth.user)).select( fields=[db.auth_user.first_name.with_alias('first_name'), db.auth_user.last_name.with_alias('last_name'), db.cofounder.note, db.cofounder_proposal.status.with_alias('status')], join=db.auth_user.on(db.cofounder.cofounder==db.auth_user.id), left=db.cofounder_proposal.on(db.cofounder_proposal.cofounder==db.cofounder.cofounder)) It gives me an error: <class 'TypeError'> _select_wcols() got multiple values for argument 'fields' I can't figure it out, as I am really deining fields just once - it's not specified otherwise anywhere. Any ideas? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.