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:
|
if link_id:
|
||||||
link = AnimeLink.query.filter_by(id=link_id).first()
|
link = AnimeLink.query.filter_by(id=link_id).first()
|
||||||
|
form.folder.data = link.title.folder.id
|
||||||
else:
|
else:
|
||||||
link = AnimeLink()
|
link = AnimeLink()
|
||||||
for attr in dir(link):
|
for attr in dir(link):
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<div class="field column">
|
<div class="field column">
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
<div class="select is-fullwidth">
|
<div class="select is-fullwidth">
|
||||||
{{ action_form.folder(value=link.title.folder.id) }}
|
{{ action_form.folder }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user