From 42f8b128deaace0386cd109bc04528561105a4e6 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 6 Dec 2013 21:42:33 +0100 Subject: [PATCH] fix auditor --- .../management/commands/teleforma-message-all-seminar-users.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5