The following codes are not working in v1.92.1 but worked in some previous versions:
db.define_table( 'Products', Field('name') ) db.define_table( 'purchases', Field('product_id', db.Products) ) It would work fine if the table name changed to 'products' instead.