add schema and hook up blueprint

This commit is contained in:
Leo Hemsted
2018-02-19 15:03:36 +00:00
committed by Rebecca Law
parent 5b71d2f36e
commit 0d9aa5c531
5 changed files with 59 additions and 52 deletions

View File

@@ -100,8 +100,13 @@ class UserSchema(BaseSchema):
class Meta:
model = models.User
exclude = (
"updated_at", "created_at", "user_to_service", "user_to_organisation"
"_password", "verify_codes")
"updated_at",
"created_at",
"user_to_service",
"user_to_organisation",
"_password",
"verify_codes"
)
strict = True
@validates('name')