From 92094fc66cadfc1899b771825f37241357f88e46 Mon Sep 17 00:00:00 2001 From: Badri/Hippo Date: Wed, 5 Aug 2015 15:44:26 +0530 Subject: [PATCH] Add "successfully returned" flash notification to unborrow function --- growlinflask/growlin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/growlinflask/growlin.py b/growlinflask/growlin.py index 0938e9b..d0d7e76 100644 --- a/growlinflask/growlin.py +++ b/growlinflask/growlin.py @@ -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: