Fix bad message

This commit is contained in:
Michel Roux 2019-12-15 17:58:59 +01:00
parent 46fb483e09
commit 55ba082746

2
app.py
View File

@ -111,7 +111,7 @@ def admin():
if not len(title.links):
db.session.delete(title)
db.session.commit()
form.message = '%s (%s) has been successfully deleted' % (title, link.season)
form.message = '%s (%s) has been successfully deleted' % (title.name, link.season)
else:
form._errors = {'id': ['Id %s was not found in the database' % form.id.data]}