forked from mirrors/bookwyrm
Use edition not book for adding missing covers
This commit is contained in:
parent
58e4465bb2
commit
5635e60c09
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ def upload_cover(request, book_id):
|
|||
return redirect('/book/%s' % request.user.localname)
|
||||
|
||||
try:
|
||||
book = models.Book.objects.get(id=book_id)
|
||||
book = models.Edition.objects.get(id=book_id)
|
||||
except models.Book.DoesNotExist:
|
||||
return HttpResponseNotFound()
|
||||
|
||||
|
|
Loading…
Reference in a new issue