Fix incorrect schema validator (#1790)

* Use right length in Page title validator
This commit is contained in:
Kevin Chung
2021-01-29 18:48:07 -05:00
committed by GitHub
parent 7fe32d7a5d
commit 3af0b68164

View File

@@ -16,9 +16,7 @@ class PageSchema(ma.ModelSchema):
"title",
validate=[
validate.Length(
min=0,
max=128,
error="Page could not be saved. Your title is too long.",
min=0, max=80, error="Page could not be saved. Your title is too long.",
)
],
)