[web2py] Re: Field (..update=auth.id..) does not seem to work for me.

2013-12-16 Thread TSmith
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:

[web2py] Re: Field (..update=auth.id..) does not seem to work for me.

2013-12-16 Thread TSmith
On Friday, December 13, 2013 1:23:49 PM UTC-5, TSmith wrote: There exists a table. I added the modified_by field as shown below. I also tried the second version which is what I really want. db.define_table('DOCUMENTATION', Field('documentation_type','string'),

[web2py] Re: Field (..update=auth.id..) does not seem to work for me.

2013-12-13 Thread Massimo Di Pierro
Should not be default=auth.user but default=auth.user_id (same for update=...) Anyway you will get Null when user_id is None. On Friday, 13 December 2013 12:23:49 UTC-6, TSmith wrote: There exists a table. I added the modified_by field as shown below. I also tried the second version which