On Nov 18, 3:31 am, Cahya Dewanta <cahya...@gmail.com> wrote: > According to the book, for what I understand > > record = db(db.owner.name=='test').select(db.owner.id).first() > could be shortcut with > record = db.owner(id, name='test')
record = db.owner(name='test') # if you want just the id do record = db.owner(name='test').id > But the latter return None. How can I shortcut the first statement > properly? > > Thank you so very much.