Bruno Rocha <rochacbruno@...> writes: > > > 2011/1/21 web2py noob <web2py.n...@gmail.com> > > > > bruno, what you say above is wrong. the workaround is: > > db.define_table('tablename', > Field('fieldname',db.othertable, represent=lambda f:db.othertable[f].fieldname)) > > best regards.
I found that on of last changesets changed the sqlhtml.py file at lite 1337, introducing : elif field.type.startswith('reference'): pass prevents the SQLTABLE to take care of the 'represent' clause (see http://code.google.com/p/web2py/issues/detail?id=141#makechanges).