From b2a560dbe2275eae639e1499ab1c42840d0b1fa1 Mon Sep 17 00:00:00 2001 From: Dominik Seeger <dominik.seeger@gmx.net> Date: Wed, 14 Aug 2019 14:19:51 +0200 Subject: [PATCH] student account will now be disabled upon creation --- util/importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/importer.py b/util/importer.py index d143197c..01f0aaa3 100644 --- a/util/importer.py +++ b/util/importer.py @@ -134,7 +134,7 @@ def load_hektor_json(): log.warning(f"Updated submission type {submission_type}") for student in exam_data['students']: - student_obj = user_factory.make_student(exam=exam, + student_obj = user_factory.make_student(exam=exam, is_active=False, **student).student for submission_obj in student['submissions']: add_submission(student_obj, **submission_obj) -- GitLab