From e1b9ffe1024273e3e9e61275e01d808f5a7de739 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 15 Jan 2025 07:56:24 +0100 Subject: [PATCH] fix model --- .../commands/teleforma-cleanup-private-documents.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teleforma/management/commands/teleforma-cleanup-private-documents.py b/teleforma/management/commands/teleforma-cleanup-private-documents.py index b85bc574..9052eeb3 100644 --- a/teleforma/management/commands/teleforma-cleanup-private-documents.py +++ b/teleforma/management/commands/teleforma-cleanup-private-documents.py @@ -6,5 +6,5 @@ class Command(BaseCommand): help = "Delete all private documents" def handle(self, *args, **options): - for document in Document.objects.all(): - Document.delete() + for document in DocumentPrivate.objects.all(): + DocumentPrivate.delete() -- 2.39.5