Thanks, I got what I wanted this morning. Adding it here to improve my question as well.
I originally used this from the literature: Field('modified_by', 'reference auth_user', default=auth.user_id, update=auth.user_id, writable=False), This is what I needed: Field('modified_by', 'string', default=auth.user.email, update=auth.user.email, writable=False), 1. I don't think I need the 'reference' as no code other than the model is every going to be updating the field because it has a default and update and is not writable. 2. Once without the reference, I can set the field to text type and copy what I want. 3. Note to corporate types: I'll be using this with active directory, so I expect auth.user.username would be the better field. I used auth.user.email in the example because that is available out of the box. On Friday, December 13, 2013 8:36:24 PM UTC-5, Massimo Di Pierro wrote: > > Should not be default=auth.user but default=auth.user_id (same for > update=...) Anyway you will get Null when user_id is None. > > -- 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/groups/opt_out.