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", "title",
validate=[ validate=[
validate.Length( validate.Length(
min=0, min=0, max=80, error="Page could not be saved. Your title is too long.",
max=128,
error="Page could not be saved. Your title is too long.",
) )
], ],
) )