mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-25 15:31:37 +01:00
Fix validation error in release form on incomplete URL
This commit is contained in:
parent
64dab0c4b6
commit
a8a3067ac9
@ -55,7 +55,7 @@ class CreatePackageReleaseForm(FlaskForm):
|
|||||||
|
|
||||||
class EditPackageReleaseForm(FlaskForm):
|
class EditPackageReleaseForm(FlaskForm):
|
||||||
title = StringField("Title", [InputRequired(), Length(1, 30)])
|
title = StringField("Title", [InputRequired(), Length(1, 30)])
|
||||||
url = StringField("URL", [URL()])
|
url = StringField("URL", [Optional()])
|
||||||
task_id = StringField("Task ID", filters = [lambda x: x or None])
|
task_id = StringField("Task ID", filters = [lambda x: x or None])
|
||||||
approved = BooleanField("Is Approved")
|
approved = BooleanField("Is Approved")
|
||||||
min_rel = QuerySelectField("Minimum Minetest Version", [InputRequired()],
|
min_rel = QuerySelectField("Minimum Minetest Version", [InputRequired()],
|
||||||
|
Loading…
Reference in New Issue
Block a user