]> git.parisson.com Git - teleforma.git/commitdiff
fix auditor
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 6 Dec 2013 20:42:33 +0000 (21:42 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 6 Dec 2013 20:42:33 +0000 (21:42 +0100)
teleforma/management/commands/teleforma-message-all-seminar-users.py

index 57ce129c6ee2e5dfe23199450df0e09be2fa692d..5a9b02a0329c6d5b3b4edce5123d0b93b2e739c4 100644 (file)
@@ -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