diff --git a/server/users/services.py b/server/users/services.py index d90de387..37d5294e 100644 --- a/server/users/services.py +++ b/server/users/services.py @@ -36,8 +36,8 @@ def create_users(data=None): ) teacher2 = UserFactory(username='teacher2') UserRole.objects.create(user=teacher2, role=teacher_role) - student_second_class = UserFactory(username='student_second_class') - UserRole.objects.create(user=student_second_class, role=student_role) + + student_second_class = create_student(username='student_second_class') SchoolClassFactory( users=[teacher2, student_second_class], name='second_class'