Skip to content
Snippets Groups Projects
Verified Commit 7619dc0a authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Increase borrow count on borrowing. Advances #10, #11.

parent 2204f23f
No related branches found
No related tags found
No related merge requests found
......@@ -274,6 +274,7 @@ def person_borrow(request: HttpRequest) -> HttpResponse:
continue
book_copy.borrower = person
book_copy.borrow_count = book_copy.borrow_count + 1
book_copy.save()
messages.success(request, _('Book %s borrowed to %s.') % (book_copy.book.title, person))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment