Increase maximum comment size from 255 to 1024.

DB change: Change comment text field from VARCHAR(255) to mysql.TEXT
This commit is contained in:
nyaadev
2017-08-14 19:08:36 +02:00
parent 1c3724cae1
commit d5b8a3a2ae
3 changed files with 38 additions and 5 deletions

View File

@@ -142,7 +142,7 @@ class DisabledSelectField(SelectField):
class CommentForm(FlaskForm):
comment = TextAreaField('Make a comment', [
Length(min=3, max=255, message='Comment must be at least %(min)d characters '
Length(min=3, max=1024, message='Comment must be at least %(min)d characters '
'long and %(max)d at most.'),
DataRequired()
])