Reduce min comment length

This commit is contained in:
rubenwardy 2023-08-06 20:55:55 +01:00
parent 7492c308ad
commit a1eac9959e
2 changed files with 3 additions and 3 deletions

@ -41,7 +41,7 @@ def list_reviews():
class ReviewForm(FlaskForm):
title = StringField(lazy_gettext("Title"), [InputRequired(), Length(3,100)])
title = StringField(lazy_gettext("Title"), [InputRequired(), Length(3, 100)])
comment = TextAreaField(lazy_gettext("Comment"), [InputRequired(), Length(10, 2000)])
rating = RadioField(lazy_gettext("Rating"), [InputRequired()],
choices=[("5", lazy_gettext("Yes")), ("3", lazy_gettext("Neutral")), ("1", lazy_gettext("No"))])

@ -177,8 +177,8 @@ def delete_reply(id):
class CommentForm(FlaskForm):
comment = TextAreaField(lazy_gettext("Comment"), [InputRequired(), Length(10, 2000)])
submit = SubmitField(lazy_gettext("Comment"))
comment = TextAreaField(lazy_gettext("Comment"), [InputRequired(), Length(2, 2000)])
submit = SubmitField(lazy_gettext("Comment"))
@bp.route("/threads/<int:id>/edit/", methods=["GET", "POST"])