Thank you, Anthony! For me was important to be sure that I make no other mistake and proper way to fix it is with delayed setting of represent=..
Based on your answer, this works excellent for me: db.place.place_id.represent = lambda id, row: id and id.place or "" (handled for None + different parameters order) Dne pondělí 6. června 2016 14:27:42 UTC+2 Anthony napsal(a): > > The "represent" attribute of the field cannot be set automatically in this > case because the table has not been defined at the time the field is > created. So you must set the "represent" attribute yourself: > > represent=lambda r, id: id.place > > 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.