> Is there a way to return a single set of JSON data from my controller when 
> joining tables?
>
 
This can solve the problem, although it might result in slower requests:

newrows = []
for row in rows:
    d = {}
    d.update(**row.event.as_dict())
    d.update(**row.eventType.as_dict())
    newrows.append(d)

 

-- 

--- 
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/groups/opt_out.


Reply via email to