You can do:
Field('user', db.auth_user, default=auth.user_id, writable=False))
Anyway, "type" and "user" are not valid field names. They work with sqlite
but will break with postgresql and other databases.
On Monday, 7 January 2013 14:31:33 UTC-6, Dave Cenker wrote:
>
> This seems so elementary
Thank you very much! I knew it had to be simple. I just didn't infer that
information from the way the book explained it. Your help is much
appreciated!
On Monday, January 7, 2013 3:31:33 PM UTC-5, Dave Cenker wrote:
> This seems so elementary, but I can't seem to find out how to do it in the
Field('user_id', 'reference auth_user', default=auth.user_id)
On Monday, January 7, 2013 9:31:33 PM UTC+1, Dave Cenker wrote:
>
> This seems so elementary, but I can't seem to find out how to do it in the
> book or googling the group ...
>
> I have several users defined and when that user is lo
3 matches
Mail list logo