On Friday, March 6, 2015 at 2:02:57 PM UTC-5, Leonel Câmara wrote:
>
> you need to write row.sessions.id
>
> You always need to be explicit in represents.
>

You need to be explicit in virtual fields (i.e., include the table name), 
but I don't think that is the case with represent. I think the problem here 
is that in the select, the "id" field is not included, so therefore not 
available when the represent function is called. Try changing it to:

 .select(db.sessions.id, db.sessions.session_name)

Anthony

-- 
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.

Reply via email to