From 31bae530df723d4ffafe5db7023026d4a699551c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Fri, 13 Dec 2019 19:22:45 +0100 Subject: [PATCH] Fix add choices --- app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app.py b/app.py index 10ae463..f8817aa 100644 --- a/app.py +++ b/app.py @@ -153,6 +153,7 @@ def admin_add(): @auth.login_required def admin_save(): form = EditForm(request.form) + form.folder.choices = [(query.id, query.name) for query in AnimeFolder.query.all()] if form.validate_on_submit(): title = AnimeTitle.query.filter_by(name=form.name.data).first() title = title if title else AnimeTitle()