Track last edited by on partial edits

This commit is contained in:
Mouse Reeve 2021-02-28 13:40:57 -08:00
parent 310d4a1f59
commit 3ecdc8f93e

View file

@ -163,6 +163,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()
@ -182,6 +183,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)