Use edition not book for adding missing covers
This commit is contained in:
parent
58e4465bb2
commit
5635e60c09
|
@ -144,7 +144,7 @@ def upload_cover(request, book_id):
|
||||||
return redirect('/book/%s' % request.user.localname)
|
return redirect('/book/%s' % request.user.localname)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
book = models.Book.objects.get(id=book_id)
|
book = models.Edition.objects.get(id=book_id)
|
||||||
except models.Book.DoesNotExist:
|
except models.Book.DoesNotExist:
|
||||||
return HttpResponseNotFound()
|
return HttpResponseNotFound()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue