From: Guillaume Pellerin Date: Mon, 11 Jul 2022 09:38:54 +0000 (+0200) Subject: reserve new conf notification to Student.platform_only X-Git-Tag: 2.7.1~12 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e242856fcf02ab74579bf741dfbd73c0d31e06d7;p=teleforma.git reserve new conf notification to Student.platform_only --- diff --git a/bin b/bin index 7a7c9ab6..877deb91 160000 --- a/bin +++ b/bin @@ -1 +1 @@ -Subproject commit 7a7c9ab66099c6e93acacf48d589bfc9da5a9fc2 +Subproject commit 877deb91a9d035c74bf726fed8851d38e93014ce diff --git a/teleforma/management/commands/teleforma-publish-notify-conferences.py b/teleforma/management/commands/teleforma-publish-notify-conferences.py index c1b803ff..44de37aa 100644 --- a/teleforma/management/commands/teleforma-publish-notify-conferences.py +++ b/teleforma/management/commands/teleforma-publish-notify-conferences.py @@ -96,7 +96,7 @@ class Command(BaseCommand): url = reverse('teleforma-media-detail', args=[conference.period.id, linked_media.id]) message = "Nouvelle conférence publiée : " + str(conference) - students = Student.objects.filter(period=conference.period) + students = Student.objects.filter(period=conference.period, platform_only=True) for student in students: try: if student.user: