]> git.parisson.com Git - teleforma.git/commitdiff
fix model
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Wed, 15 Jan 2025 06:56:24 +0000 (07:56 +0100)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Wed, 15 Jan 2025 06:56:24 +0000 (07:56 +0100)
teleforma/management/commands/teleforma-cleanup-private-documents.py

index b85bc5747a18973e9feb6fd286a5e34587f91a32..9052eeb380c80ee1eb112cc5a425d08421b93d8c 100644 (file)
@@ -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()