diff --git a/forms.py b/forms.py index 4a1de64..65aa6c1 100644 --- a/forms.py +++ b/forms.py @@ -56,7 +56,7 @@ class LoginForm(FlaskForm): class RegistrationCodeForm(FlaskForm): - expiration_time = DateField('Expiration Time', validators=[Optional()]) + expiration_time = DateField('Expiration Time', format='%Y-%m-%d', validators=[Optional()]) max_usages = IntegerField('Max Usages', validators=[NumberRange(min=1)])