mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix release notes length limit
This commit is contained in:
parent
3f12a89764
commit
1fc7aeb1dd
@ -54,7 +54,7 @@ def get_mt_releases(is_max):
|
|||||||
class CreatePackageReleaseForm(FlaskForm):
|
class CreatePackageReleaseForm(FlaskForm):
|
||||||
name = StringField(lazy_gettext("Name"), [InputRequired(), Length(1, 30)])
|
name = StringField(lazy_gettext("Name"), [InputRequired(), Length(1, 30)])
|
||||||
title = StringField(lazy_gettext("Title"), [Optional(), Length(1, 100)], filters=[nonempty_or_none])
|
title = StringField(lazy_gettext("Title"), [Optional(), Length(1, 100)], filters=[nonempty_or_none])
|
||||||
release_notes = TextAreaField(lazy_gettext("Release Notes"), [Optional(), Length(1, 100)],
|
release_notes = TextAreaField(lazy_gettext("Release Notes"), [Optional(), Length(1, 5000)],
|
||||||
filters=[nonempty_or_none, normalize_line_endings])
|
filters=[nonempty_or_none, normalize_line_endings])
|
||||||
upload_mode = RadioField(lazy_gettext("Method"), choices=[("upload", lazy_gettext("File Upload"))], default="upload")
|
upload_mode = RadioField(lazy_gettext("Method"), choices=[("upload", lazy_gettext("File Upload"))], default="upload")
|
||||||
vcs_label = StringField(lazy_gettext("Git reference (ie: commit hash, branch, or tag)"), default=None)
|
vcs_label = StringField(lazy_gettext("Git reference (ie: commit hash, branch, or tag)"), default=None)
|
||||||
@ -69,7 +69,7 @@ class CreatePackageReleaseForm(FlaskForm):
|
|||||||
class EditPackageReleaseForm(FlaskForm):
|
class EditPackageReleaseForm(FlaskForm):
|
||||||
name = StringField(lazy_gettext("Name"), [InputRequired(), Length(1, 30)])
|
name = StringField(lazy_gettext("Name"), [InputRequired(), Length(1, 30)])
|
||||||
title = StringField(lazy_gettext("Title"), [InputRequired(), Length(1, 30)], filters=[nonempty_or_none])
|
title = StringField(lazy_gettext("Title"), [InputRequired(), Length(1, 30)], filters=[nonempty_or_none])
|
||||||
release_notes = TextAreaField(lazy_gettext("Release Notes"), [Optional(), Length(1, 100)],
|
release_notes = TextAreaField(lazy_gettext("Release Notes"), [Optional(), Length(1, 5000)],
|
||||||
filters=[nonempty_or_none, normalize_line_endings])
|
filters=[nonempty_or_none, normalize_line_endings])
|
||||||
url = StringField(lazy_gettext("URL"), [Optional()])
|
url = StringField(lazy_gettext("URL"), [Optional()])
|
||||||
task_id = StringField(lazy_gettext("Task ID"), filters = [lambda x: x or None])
|
task_id = StringField(lazy_gettext("Task ID"), filters = [lambda x: x or None])
|
||||||
|
Loading…
Reference in New Issue
Block a user