Sorry, I meant "auth_user" not "user_auth". So that wasn't the problem.
On Aug 27, 4:16 pm, monotasker <[email protected]> wrote: > Hi. I'm trying to create a table in a model that users db.user_auth as > an external key in one of the fields. But whenever I add db.auth to > the table definition it generates a "key" error compaining about > "user_auth". > > Here's the section of the model that throws the error: > > db.define_table('question_records', > Field('user', db.user_auth), > Field('question', db.questions), > Field('last_right', 'date', default=request.now), > Field('last_wrong', 'date', default=request.now), > Field('times_right'), > Field('times_wrong'), > Field('category') > ) > > Any idea why this isn't working? > > Thanks

