From eef791430d19c0e2df1ea9c3d84903e2d614339b Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 7 Feb 2023 11:13:20 +0100 Subject: [PATCH] publish: check media, cleanup --- .../management/commands/teleforma-publish-notify-conferences.py | 2 ++ 1 file changed, 2 insertions(+) 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() + -- 2.39.5