From: Guillaume Pellerin Date: Tue, 22 Jun 2021 12:02:53 +0000 (+0200) Subject: bugfix X-Git-Tag: 2.1~66^2^2~11^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=68ced5f19bd73222028174bf68bfb7ed66f23eac;p=teleforma.git bugfix --- 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()