Use edition not book for adding missing covers

This commit is contained in:
Mouse Reeve 2020-04-04 12:34:36 -07:00
parent 58e4465bb2
commit 5635e60c09

View file

@ -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()