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 ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/d2059d0e-3a35-46fb-a40c-e5d658cc8a45n%40googlegroups.com.