Make sure the document page image API goes via the proper queryset filtering.

Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
Michael Price
2018-03-05 05:01:33 -04:00
committed by Roberto Rosario
parent 381dafc7b9
commit 9ca7ca5ce6

View File

@@ -378,7 +378,7 @@ class APIDocumentPageImageView(generics.RetrieveAPIView):
task = task_generate_document_page_image.apply_async(
kwargs=dict(
document_page_id=self.kwargs['page_pk'], size=size, zoom=zoom,
document_page_id=self.get_object().pk, size=size, zoom=zoom,
rotation=rotation
)
)