From e3974c68ba30c7d48df09ecbe60eb794ac982ed7 Mon Sep 17 00:00:00 2001 From: Jonas Winkler Date: Mon, 16 Jul 2018 18:01:27 +0200 Subject: [PATCH] bugfix --- src/documents/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/documents/admin.py b/src/documents/admin.py index be37188e6..0c4904374 100755 --- a/src/documents/admin.py +++ b/src/documents/admin.py @@ -132,8 +132,8 @@ class DocumentAdmin(CommonAdmin): def changelist_view(self, request, extra_context=None): response = super().changelist_view(request, extra_context) - - self.document_queue = [doc.id for doc in response.context_data['cl'].queryset] + if 'cl' in response.context_data: + self.document_queue = [doc.id for doc in response.context_data['cl'].queryset] return response