Greetings,
I have defined a table referencing auth_user, but i want on the web form select box to only bring users belonging to one group,
not showing all the system users.
i am wondering if i should use a lambda function or if there is a way of adding a condition on a reference field.
E,g returning only users belonging in a writer group on the writer_user
db.define_table('post',
Field('post_name','string', label="Name", requires=IS_NOT_EMPTY()),
Field('description','text', label="Desc"),
Field('writer_user','reference auth_user', label="User"),
auth.signature,
format='%(post_name)s')
Kr,
Oasis