From: Guillaume Pellerin Date: Thu, 13 Jan 2022 17:06:16 +0000 (+0100) Subject: bugfix X-Git-Tag: 2.5.1~13 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=cd5a1ea34eec0b752b24041e0c8307a52238382a;p=teleforma.git bugfix --- diff --git a/lib/pdfannotator b/lib/pdfannotator index c6b95327..ce69eca1 160000 --- a/lib/pdfannotator +++ b/lib/pdfannotator @@ -1 +1 @@ -Subproject commit c6b953270e4e8a7d97853d7a784f8e6df9ed9c53 +Subproject commit ce69eca18a6f5b8774215725fd6b42534f13412f diff --git a/teleforma/management/commands/teleforma-deactivate-students.py b/teleforma/management/commands/teleforma-deactivate-students.py index 65d7f381..a366a0a5 100644 --- a/teleforma/management/commands/teleforma-deactivate-students.py +++ b/teleforma/management/commands/teleforma-deactivate-students.py @@ -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()