diff --git a/snikket_web/admin.py b/snikket_web/admin.py index 9b9e843..e4548a7 100644 --- a/snikket_web/admin.py +++ b/snikket_web/admin.py @@ -272,6 +272,7 @@ async def edit_invite(id_: str) -> typing.Union[str, quart.Response]: class CirclePost(flask_wtf.FlaskForm): # type:ignore name = wtforms.StringField( _l("Name"), + validators=[wtforms.validators.InputRequired()], ) action_create = wtforms.SubmitField( diff --git a/snikket_web/templates/admin_circles.html b/snikket_web/templates/admin_circles.html index a6b14a6..5e81e05 100644 --- a/snikket_web/templates/admin_circles.html +++ b/snikket_web/templates/admin_circles.html @@ -41,7 +41,7 @@ {{- create_form.csrf_token -}}