mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Merge branch 'ui-improvements' into dev
This commit is contained in:
commit
dfa5ea423f
@ -152,8 +152,10 @@ class DocumentAdmin(CommonAdmin):
|
|||||||
|
|
||||||
def changelist_view(self, request, extra_context=None):
|
def changelist_view(self, request, extra_context=None):
|
||||||
response = super().changelist_view(request, extra_context)
|
response = super().changelist_view(request, extra_context)
|
||||||
if 'cl' in response.context_data:
|
|
||||||
self.document_queue = [doc.id for doc in response.context_data['cl'].queryset]
|
if request.method == 'GET':
|
||||||
|
cl = self.get_changelist_instance(request)
|
||||||
|
self.document_queue = [doc.id for doc in cl.queryset]
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user