From: Guillaume Pellerin Date: Wed, 15 Jan 2025 06:56:24 +0000 (+0100) Subject: fix model X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e1b9ffe1024273e3e9e61275e01d808f5a7de739;p=teleforma.git fix model --- 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()