]> git.lizzy.rs Git - cheatdb.git/blobdiff - app/blueprints/threads/__init__.py
Increase comment length limit to 2000
[cheatdb.git] / app / blueprints / threads / __init__.py
index fbaab87fa4c8a8662fe052c4d64c792053cbe828..705703a0fc7aef3e89a6cf823618bcd67e7f1a2a 100644 (file)
@@ -141,14 +141,11 @@ def delete_reply(id):
        return redirect(thread.getViewURL())
 
 
-
-
 class CommentForm(FlaskForm):
-       comment = TextAreaField("Comment", [InputRequired(), Length(10, 500)])
+       comment = TextAreaField("Comment", [InputRequired(), Length(10, 2000)])
        submit  = SubmitField("Comment")
 
 
-
 @bp.route("/threads/<int:id>/edit/", methods=["GET", "POST"])
 @login_required
 def edit_reply(id):
@@ -226,7 +223,7 @@ def view(id):
 
 class ThreadForm(FlaskForm):
        title   = StringField("Title", [InputRequired(), Length(3,100)])
-       comment = TextAreaField("Comment", [InputRequired(), Length(10, 500)])
+       comment = TextAreaField("Comment", [InputRequired(), Length(10, 2000)])
        private = BooleanField("Private")
        submit  = SubmitField("Open Thread")