]> git.parisson.com Git - teleforma.git/commitdiff
bugfix
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 13 Jan 2022 17:06:16 +0000 (18:06 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 13 Jan 2022 17:06:16 +0000 (18:06 +0100)
lib/pdfannotator
teleforma/management/commands/teleforma-deactivate-students.py

index c6b953270e4e8a7d97853d7a784f8e6df9ed9c53..ce69eca18a6f5b8774215725fd6b42534f13412f 160000 (submodule)
@@ -1 +1 @@
-Subproject commit c6b953270e4e8a7d97853d7a784f8e6df9ed9c53
+Subproject commit ce69eca18a6f5b8774215725fd6b42534f13412f
index 65d7f38146bf1b2869af9ae9905479ef37b5bcca..a366a0a58c87f9bdb4f94b7a30541f80861c5864 100644 (file)
@@ -44,7 +44,7 @@ class Command(BaseCommand):
         translation.activate(self.language_code)
 
         for student in students:
-            if hasattr(student, 'user'):
+            if student.user:
                 if student.is_subscribed and student.confirmation_sent and student.user.email and student.user.is_active:
                     student.user.is_active = False
                     student.user.save()