From: Guillaume Pellerin Date: Wed, 23 Jun 2021 15:58:07 +0000 (+0200) Subject: Merge branch 'release/next' into dev X-Git-Tag: 2.1~66^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5edd20e789d3f0dabf582b7095d9eadbf0c720c9;p=teleforma.git Merge branch 'release/next' into dev --- 5edd20e789d3f0dabf582b7095d9eadbf0c720c9 diff --cc teleforma/management/commands/teleforma-delete-annotations.py index 81088ce6,4a55ffb4..06f2d54c --- a/teleforma/management/commands/teleforma-delete-annotations.py +++ b/teleforma/management/commands/teleforma-delete-annotations.py @@@ -28,4 -28,13 +28,11 @@@ class Command(BaseCommand) annotation_comment.delete() script.delete() - + scripts = Script.objects.all() + for annotation_comment in AnnotationComment.objects.all(): + if not scripts.filter(uuid=annotation_comment.uuid): + annotation_comment.delete() + for annotation in Annotation.objects.all(): + if not scripts.filter(uuid=annotation.uuid): + annotation.delete() + - -