I have two tables:
db.define_table('tests', Field('name'), Field('status'),...)
db.tests.status.requires=IS_IN_SET(['OK','obsolete'])
db.define_table('testruns', Field('name'), Field('test', db.tests), ...)
My form looks lik this:
form = SQLFORM(db.testruns)
How can I change the form, that it contains only the tests that have the state 'OK'?