Groups
Groups
Sign in
Groups
Groups
web2py-users
Conversations
Labels
About
Send feedback
Help
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 AM
1/21/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
1/21/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web...@googlegroups.com
wrong Table!!
Thank you!!
Reply all
Reply to author
Forward
0 new messages