Fix bad message
This commit is contained in:
parent
46fb483e09
commit
55ba082746
2
app.py
2
app.py
@ -111,7 +111,7 @@ def admin():
|
|||||||
if not len(title.links):
|
if not len(title.links):
|
||||||
db.session.delete(title)
|
db.session.delete(title)
|
||||||
db.session.commit()
|
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:
|
else:
|
||||||
form._errors = {'id': ['Id %s was not found in the database' % form.id.data]}
|
form._errors = {'id': ['Id %s was not found in the database' % form.id.data]}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user