Fix folder id
This commit is contained in:
parent
b4f884b1fd
commit
df335cf48e
1
app.py
1
app.py
@ -145,6 +145,7 @@ def admin_edit(link_id=None):
|
||||
|
||||
if link_id:
|
||||
link = AnimeLink.query.filter_by(id=link_id).first()
|
||||
form.folder.data = link.title.folder.id
|
||||
else:
|
||||
link = AnimeLink()
|
||||
for attr in dir(link):
|
||||
|
@ -10,7 +10,7 @@
|
||||
<div class="field column">
|
||||
<div class="control is-expanded">
|
||||
<div class="select is-fullwidth">
|
||||
{{ action_form.folder(value=link.title.folder.id) }}
|
||||
{{ action_form.folder }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user