From ceffcd6360342f8d7791c8ad0b68d7e92f4346ce Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 17 Feb 2025 18:41:47 -0800 Subject: [PATCH] Fix: correct logged number of deleted documents on trash (#9148) --- src/documents/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/tasks.py b/src/documents/tasks.py index d8539d1ab..052def80f 100644 --- a/src/documents/tasks.py +++ b/src/documents/tasks.py @@ -335,7 +335,7 @@ def empty_trash(doc_ids=None): ) try: - deleted_document_ids = documents.values_list("id", flat=True) + deleted_document_ids = list(documents.values_list("id", flat=True)) # Temporarily connect the cleanup handler models.signals.post_delete.connect(cleanup_document_deletion, sender=Document) documents.delete() # this is effectively a hard delete