Fix license editor crash (#410)

This commit is contained in:
wsor4035 2022-12-26 14:01:34 -05:00 committed by GitHub
parent 5940919fae
commit 01344256a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -34,7 +34,7 @@ def license_list():
class LicenseForm(FlaskForm): class LicenseForm(FlaskForm):
name = StringField("Name", [InputRequired(), Length(3, 100)]) name = StringField("Name", [InputRequired(), Length(3, 100)])
is_foss = BooleanField("Is FOSS") is_foss = BooleanField("Is FOSS")
url = URLField("URL", [Optional], filters=[nonEmptyOrNone]) url = URLField("URL", [Optional()], filters=[nonEmptyOrNone])
submit = SubmitField("Save") submit = SubmitField("Save")