I don't have any "require" in the model I posted. do you know how can I get it work with the model I posted above?
2011/1/31 w2padawan <[email protected]>: > 2011/1/31 Alexandre Andrade <[email protected]>: >> It works fine to me, but it relies on default keys on db >> subcategory table: >> Field('category_id', db.category) >> if it is like >> Field('category_id', requires(db, db.category.id)) >> it will not work. > > Hi Alexandre, I don't fully understand your point. By "default keys on > db" you mean using: > > Field('reference', db.othertable) > > in contrast of: > > Field('reference' type='reference othertable') ? > > It doesn't work in that way, neither. But as I said before, if I > remove 'db.t_categoria' from > line 110 in [2] (links posted in first post) the widget do work, and > go wrong if I put db.t_categoria there again, but the keys seems to be > in place as the code shows, so I still can't figure what i'm doing > wrong. >

