mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Reduce min comment length
This commit is contained in:
parent
7492c308ad
commit
a1eac9959e
@ -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"])
|
||||
|
Loading…
Reference in New Issue
Block a user