mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-20 15:17:06 +00:00
Track last edited by on partial edits
This commit is contained in:
parent
310d4a1f59
commit
3ecdc8f93e
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue