From: Guillaume Pellerin Date: Fri, 6 Dec 2013 20:42:33 +0000 (+0100) Subject: fix auditor X-Git-Tag: 2.8.1-pro~479^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=42f8b128deaace0386cd109bc04528561105a4e6;p=teleforma.git fix auditor --- diff --git a/teleforma/management/commands/teleforma-message-all-seminar-users.py b/teleforma/management/commands/teleforma-message-all-seminar-users.py index 57ce129c..5a9b02a0 100644 --- a/teleforma/management/commands/teleforma-message-all-seminar-users.py +++ b/teleforma/management/commands/teleforma-message-all-seminar-users.py @@ -34,6 +34,7 @@ class Command(BaseCommand): profile, c = Profile.objects.get_or_create(user=user) auditor = user.auditor.all() if auditor and profile and user.is_active and user.email: + auditor = auditor[0] seminars = auditor.seminars.all() for seminar in seminars: organization = seminar.course.department.name