[web2py] Re: avoiding duplicate field names

2016-09-16 Thread Alex Glaros
thanks Niphlod, you're right. Answer is right in the book. Works now. my_current_role_names = db(db.Role.role_owner_organization_FK == specificOrganizationID) db.Role.role_name.requires = IS_NOT_IN_DB(my_current_role_names, 'Role.role_name') -- Resources: - http://web2py.com -

[web2py] Re: avoiding duplicate field names

2016-09-16 Thread Niphlod
the query is right, but *requires=* *require *- excuse the repetition - a validator, not a query (those nifty IS_LENGTH() thingies) On Friday, September 16, 2016 at 5:18:30 AM UTC+2, Alex Glaros wrote: > > are there any simple mistakes in this syntax or am I approaching it wrong? > >