diff --git a/src/documents/admin.py b/src/documents/admin.py index 5df235618..59cbf1853 100644 --- a/src/documents/admin.py +++ b/src/documents/admin.py @@ -51,6 +51,7 @@ class DocumentAdmin(GuardedModelAdmin): "archive_filename", "archive_checksum", "original_filename", + "deleted_at", ) list_display_links = ("title",) @@ -77,6 +78,12 @@ class DocumentAdmin(GuardedModelAdmin): 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): from documents import index