table.insert(**mydict) returns Field auth_user does not belong to the table

15 views
Skip to first unread message

António Ramos

unread,
Jan 21, 2020, 11:57:48 AM1/21/20
to web...@googlegroups.com
Hello this is my model and code. Apparently all is ok but i get the error
Field auth_user does not belong to the table
any help ???

Code and model....
mydict={"event":"testing testing",auth_user:4}

db.entities.insert(**mydict)

db.define_table(
    'events',
    Field('event''text'),
    Field('auth_user', db.auth_user,default=auth.user_id),
    ...

)

António Ramos

unread,
Jan 21, 2020, 12:05:14 PM1/21/20
to web...@googlegroups.com
wrong Table!!
Thank you!!
Reply all
Reply to author
Forward
0 new messages