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'),
> Field('modi
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_b
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 whic
3 matches
Mail list logo