If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    cfhowes  10 years ago
    Very useful. How can this be extended for updating/deleting? I keep getting errors when I try the following (as per SQLFORM docs): def update(): record = db.client.id[1] form = SQLFORM.factory(db.client, db.address, record)

Commented on:

It often happens that you have two tables (for example 'client' and 'address') which are linked together by a reference and you want to create a single form that allows to insert info about one client and its default address. Here is how.

Hosting graciously provided by:
Python Anywhere