示例#1
0
class VoteSchema(BaseSchema):
    rego_id = ExistingRegistrationValidator(not_empty=True)
示例#2
0
class RegoRoomSchema(BaseSchema):
    rego = ExistingRegistrationValidator(not_empty=True)
    room = validators.String(not_empty=True)
    by = ExistingPersonValidator(not_empty=True)
示例#3
0
class RegoNoteSchema(BaseSchema):
    rego = ExistingRegistrationValidator(not_empty=True)
    note = validators.String(not_empty=True)
    block = validators.Bool(if_empty=False)
    by = ExistingPersonValidator(not_empty=True)