Merge pull request #669 from mouse-reeve/edit-book-field

Track last edited by on partial edits
This commit is contained in:
Mouse Reeve 2021-03-01 11:43:17 -08:00 committed by GitHub
commit 2c2d7c4694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -159,6 +159,7 @@ def upload_cover(request, book_id):
if not form.is_valid():
return redirect('/book/%d' % book.id)
book.last_edited_by = request.user
book.cover = form.files['cover']
book.save()
@ -178,6 +179,7 @@ def add_description(request, book_id):
description = request.POST.get('description')
book.description = description
book.last_edited_by = request.user
book.save()
return redirect('/book/%s' % book.id)