forked from mirrors/bookwyrm
Merge pull request #669 from mouse-reeve/edit-book-field
Track last edited by on partial edits
This commit is contained in:
commit
2c2d7c4694
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue