From 68ced5f19bd73222028174bf68bfb7ed66f23eac Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 22 Jun 2021 14:02:53 +0200 Subject: [PATCH] bugfix --- teleforma/management/commands/teleforma-delete-annotations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teleforma/management/commands/teleforma-delete-annotations.py b/teleforma/management/commands/teleforma-delete-annotations.py index 47eede5f..4a55ffb4 100644 --- a/teleforma/management/commands/teleforma-delete-annotations.py +++ b/teleforma/management/commands/teleforma-delete-annotations.py @@ -30,10 +30,10 @@ class Command(BaseCommand): scripts = Script.objects.all() for annotation_comment in AnnotationComment.objects.all(): - if not scripts.objects.filter(uuid=annotation_comment.uuid): + if not scripts.filter(uuid=annotation_comment.uuid): annotation_comment.delete() for annotation in Annotation.objects.all(): - if not scripts.objects.filter(uuid=annotation.uuid): + if not scripts.filter(uuid=annotation.uuid): annotation.delete() -- 2.39.5