mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fix: correct logged number of deleted documents on trash (#9148)
This commit is contained in:
parent
37442ff829
commit
ceffcd6360
@ -335,7 +335,7 @@ def empty_trash(doc_ids=None):
|
|||||||
)
|
)
|
||||||
|
|
||||||
try:
|
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
|
# Temporarily connect the cleanup handler
|
||||||
models.signals.post_delete.connect(cleanup_document_deletion, sender=Document)
|
models.signals.post_delete.connect(cleanup_document_deletion, sender=Document)
|
||||||
documents.delete() # this is effectively a hard delete
|
documents.delete() # this is effectively a hard delete
|
||||||
|
Loading…
x
Reference in New Issue
Block a user