From 14fd30c4f4868be3b0ccfd9460c5770f54ba952c Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 27 Jan 2022 19:20:45 +0000 Subject: [PATCH] Fix attempt to call module `list` --- app/blueprints/packages/packages.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/blueprints/packages/packages.py b/app/blueprints/packages/packages.py index 856e71ba..ed714d50 100644 --- a/app/blueprints/packages/packages.py +++ b/app/blueprints/packages/packages.py @@ -289,15 +289,15 @@ def create_edit(author=None, name=None): # Initial form class from post data and default data if request.method == "GET": if package is None: - form.name.data = request.args.get("bname") - form.title.data = request.args.get("title") - form.repo.data = request.args.get("repo") + form.name.data = request.args.get("bname") + form.title.data = request.args.get("title") + form.repo.data = request.args.get("repo") form.forums.data = request.args.get("forums") form.license.data = None form.media_license.data = None else: - form.tags.data = list(package.tags) - form.content_warnings.data = list(package.content_warnings) + form.tags.data = package.tags + form.content_warnings.data = package.content_warnings if request.method == "POST" and form.type.data == PackageType.TXP: form.license.data = form.media_license.data