Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将多个验证器设置为像这个示例这样的文件。但只有其中一个运作良好。为什么?
db.aetitles.hospital_id.requires = IS_NOT_EMPTY() db.aetitles.hospital_id.requires = IS_IN_DB(db, db.hospitals.id, '%(title)s')
我试过了,这是正确的:
db.aetitles.hospital_id.requires = [IS_NOT_EMPTY(), IS_IN_DB(db, db.hospitals.id, '%(title)s')]