mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-08 22:17:34 +01:00
Fix attempt to call module list
This commit is contained in:
parent
a7103b5b35
commit
14fd30c4f4
@ -289,15 +289,15 @@ def create_edit(author=None, name=None):
|
|||||||
# Initial form class from post data and default data
|
# Initial form class from post data and default data
|
||||||
if request.method == "GET":
|
if request.method == "GET":
|
||||||
if package is None:
|
if package is None:
|
||||||
form.name.data = request.args.get("bname")
|
form.name.data = request.args.get("bname")
|
||||||
form.title.data = request.args.get("title")
|
form.title.data = request.args.get("title")
|
||||||
form.repo.data = request.args.get("repo")
|
form.repo.data = request.args.get("repo")
|
||||||
form.forums.data = request.args.get("forums")
|
form.forums.data = request.args.get("forums")
|
||||||
form.license.data = None
|
form.license.data = None
|
||||||
form.media_license.data = None
|
form.media_license.data = None
|
||||||
else:
|
else:
|
||||||
form.tags.data = list(package.tags)
|
form.tags.data = package.tags
|
||||||
form.content_warnings.data = list(package.content_warnings)
|
form.content_warnings.data = package.content_warnings
|
||||||
|
|
||||||
if request.method == "POST" and form.type.data == PackageType.TXP:
|
if request.method == "POST" and form.type.data == PackageType.TXP:
|
||||||
form.license.data = form.media_license.data
|
form.license.data = form.media_license.data
|
||||||
|
Loading…
Reference in New Issue
Block a user