Hello,

Maybe this is a stupid question.
But I could not find the answer anywhere....

I have, for example, 2 tables:

db.define_table('account',
    Field('name','string'),
    migrate=False)

db.define_table('user',
    Field('account_id',account),
    Field('name','string'),
    migrate=False)

I get an user:
u = db.user[1]

If I want to get the account name of that user:
u.account_id.name


But I want to have it with:
u.account.name

Is it possible ??


Thanks
Marcello

Reply via email to