From 72adc1f8c0390983114fe57798e77e57406b4b69 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sat, 10 Jul 2021 18:08:37 +0200 Subject: [PATCH] Fix folder --- pynyaata/__init__.py | 1 + pynyaata/templates/admin/edit.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pynyaata/__init__.py b/pynyaata/__init__.py index 81e4d0c..06022b3 100644 --- a/pynyaata/__init__.py +++ b/pynyaata/__init__.py @@ -156,6 +156,7 @@ def admin_edit(link_id=None): else: link = utils.clean_model(AnimeLink()) link.title = utils.clean_model(AnimeTitle()) + link.title.folder = utils.clean_model(AnimeFolder()) link.vf = False folders = AnimeFolder.query.all() diff --git a/pynyaata/templates/admin/edit.html b/pynyaata/templates/admin/edit.html index 605fa8c..f73571f 100644 --- a/pynyaata/templates/admin/edit.html +++ b/pynyaata/templates/admin/edit.html @@ -10,7 +10,7 @@
- {{ action_form.folder(class='input') }} + {{ action_form.folder }}