mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fixes admin pages to show trashed documents too (#8068)
This commit is contained in:
parent
da85b05ea4
commit
177cc9d985
@ -51,6 +51,7 @@ class DocumentAdmin(GuardedModelAdmin):
|
|||||||
"archive_filename",
|
"archive_filename",
|
||||||
"archive_checksum",
|
"archive_checksum",
|
||||||
"original_filename",
|
"original_filename",
|
||||||
|
"deleted_at",
|
||||||
)
|
)
|
||||||
|
|
||||||
list_display_links = ("title",)
|
list_display_links = ("title",)
|
||||||
@ -77,6 +78,12 @@ class DocumentAdmin(GuardedModelAdmin):
|
|||||||
|
|
||||||
created_.short_description = "Created"
|
created_.short_description = "Created"
|
||||||
|
|
||||||
|
def get_queryset(self, request): # pragma: no cover
|
||||||
|
"""
|
||||||
|
Include trashed documents
|
||||||
|
"""
|
||||||
|
return Document.global_objects.all()
|
||||||
|
|
||||||
def delete_queryset(self, request, queryset):
|
def delete_queryset(self, request, queryset):
|
||||||
from documents import index
|
from documents import index
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user