> db.questions.question_number.requires = IS_NOT_IN_DB( > db(db.questions.question_number ==request.vars.question_number), > 'survey_id') >
The above should be the validator for db.questions.survey_id, not for db.questions.question_number. It's saying the survey_id should be unique among records that have the same question_number as request.vars.question_number. Anthony -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

