Fix: correct logged number of deleted documents on trash

This commit is contained in:
shamoon 2025-02-17 18:35:22 -08:00
parent 37442ff829
commit de20b17cfd
No known key found for this signature in database

View File

@ -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