Field('user_id', 'integer', default=auth.user_id) or Field('user_id', 'reference auth_user', default=auth.user_id)
http://zerp.ly/rochacbruno Em 29/11/2011 09:23, "thodoris" <pasxi...@gmail.com> escreveu: > Hello, > > Simple question: > > auth.user.id returns an integer > > but if i define a field in a table: > > Field('author_id', default=auth.user_id) > > author_id is a string.... > > and if i want in a later step to compare these values it doesn't seem > good tactic to do str(auth.user.id) >