From: Guillaume Pellerin Date: Tue, 7 Feb 2023 10:13:20 +0000 (+0100) Subject: publish: check media, cleanup X-Git-Tag: 2.9.0~74^2~2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=eef791430d19c0e2df1ea9c3d84903e2d614339b;p=teleforma.git publish: check media, cleanup --- diff --git a/teleforma/management/commands/teleforma-publish-notify-conferences.py b/teleforma/management/commands/teleforma-publish-notify-conferences.py index 4096c32b..f8310736 100644 --- a/teleforma/management/commands/teleforma-publish-notify-conferences.py +++ b/teleforma/management/commands/teleforma-publish-notify-conferences.py @@ -95,6 +95,7 @@ class Command(BaseCommand): if type(publication) == ConferencePublication: conference = publication.conference else: + conference = publication medias = conference.media.all() @@ -138,3 +139,4 @@ class Command(BaseCommand): publication.save() +