Re: [web2py] Making auth_user Field optional

2010-01-26 Thread Thadeus Burgess
db.example.relationship.requires = IS_NULL_OR(IS_IN_DB(db, 'auth_user.id', 'auth_user.first_name')) -Thadeus On Tue, Jan 26, 2010 at 9:12 PM, rppowell wrote: > Hello; > > This is probably a basic thing that I am unable to figure out. > > I have the following table: > > db.define_table('examp

[web2py] Making auth_user Field optional

2010-01-26 Thread rppowell
Hello; This is probably a basic thing that I am unable to figure out. I have the following table: db.define_table('example', Field('relationship', db.auth_user)) When I use the addadmin interface to insert a record, I have the option in the dropdown to provide a blank selection. If I submi