From 2dcad108059aba67a7ed47bb98041c6243292e81 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 30 May 2016 06:49:52 -0400 Subject: [PATCH] Add missing .objects. --- mayan/apps/documents/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/documents/views.py b/mayan/apps/documents/views.py index 244d325be8..726f40be72 100644 --- a/mayan/apps/documents/views.py +++ b/mayan/apps/documents/views.py @@ -790,7 +790,7 @@ def get_document_image(request, document_id, size=setting_preview_size.value): # Special case. Allow all active and trashed documents but filter by # organization, to be able to produce thumbnails for all documents. document = get_object_or_404( - Document.filter(document_type__in=DocumentType.on_organization.all()), + Document.objects.filter(document_type__in=DocumentType.on_organization.all()), pk=document_id ) try: