Hai , I have a doubt in web2py model - conditional and validator.
I am making a mobile contact management for customers .
I am using
db.cusReg.cus_phone_number_1.requires = IS_NOT_IN_DB(db, 'cusReg.cus_phone_number_1')
db.cusReg.email_id.requires = IS_NOT_IN_DB(db, 'cusReg.email_id')
to avoid duplication of phone number and email address
it works well for 1 user ( consider its USER A )
when a new user ( consider its USER B )
likes to add their customer its violating to add them because it is already added by USER A
so how to make conditional in db.py that makes user 1 and user 2 can add same customer but they can’t repeatedly add it within them ?