From cd5a1ea34eec0b752b24041e0c8307a52238382a Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 13 Jan 2022 18:06:16 +0100 Subject: [PATCH] bugfix --- lib/pdfannotator | 2 +- teleforma/management/commands/teleforma-deactivate-students.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() -- 2.39.5