Show thumbnails and previews for deleted documents.

This commit is contained in:
Roberto Rosario
2015-10-14 15:23:02 -04:00
parent 00f1f25ecf
commit bdc15fb518
3 changed files with 21 additions and 6 deletions

View File

@@ -685,7 +685,7 @@ def document_multiple_document_type_edit(request):
# TODO: Get rid of this view and convert widget to use API and base64 only images
def get_document_image(request, document_id, size=setting_preview_size.value):
document = get_object_or_404(Document, pk=document_id)
document = get_object_or_404(Document.passthrough, pk=document_id)
try:
Permission.check_permissions(request.user, (permission_document_view,))
except PermissionDenied: