]> git.lizzy.rs Git - cheatdb.git/blobdiff - app/blueprints/admin/warningseditor.py
Fix descriptions being required in warning and tag editors
[cheatdb.git] / app / blueprints / admin / warningseditor.py
index 418d052daefe9d2af01557bb0ca0731ab02bc31c..f4c2fa4d86cc9af867217c65edb3be8f7e70c161 100644 (file)
@@ -31,8 +31,8 @@ def warning_list():
 
 class WarningForm(FlaskForm):
        title       = StringField("Title", [InputRequired(), Length(3,100)])
+       description = TextAreaField("Description", [Optional(), Length(0, 500)])
        name        = StringField("Name", [Optional(), Length(1, 20), Regexp("^[a-z0-9_]", 0, "Lower case letters (a-z), digits (0-9), and underscores (_) only")])
-       description = TextAreaField("Description", [InputRequired(), Length(0, 500)])
        submit      = SubmitField("Save")
 
 @bp.route("/admin/warnings/new/", methods=["GET", "POST"])