Skip to content

Commit

Permalink
Add "successfully returned" flash notification to unborrow function
Browse files Browse the repository at this point in the history
  • Loading branch information
badrihippo committed Aug 5, 2015
1 parent 29221c6 commit 92094fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions growlinflask/growlin.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ def user_return(borrowid):
if form.validate_on_submit():
try:
current_user.unborrow(b, form.accession.data)
flash('"%(title)s" has been successfully returned' % {
'title': b.copy.item.display_title})
except BorrowError, e:
flash(e.message)
else:
Expand Down

0 comments on commit 92094fc

Please sign in to comment.