diff --git a/edx_exams/apps/core/management/commands/bulk_add_course_staff.py b/edx_exams/apps/core/management/commands/bulk_add_course_staff.py index abe333b9..c59da559 100644 --- a/edx_exams/apps/core/management/commands/bulk_add_course_staff.py +++ b/edx_exams/apps/core/management/commands/bulk_add_course_staff.py @@ -84,10 +84,7 @@ def add_course_staff_from_csv(self, csv_file, batch_size, batch_delay): for i in range(0, len(reader), batch_size): CourseStaffRole.objects.bulk_create( CourseStaffRole( - user=User.objects.get( - username=row.get('username'), - email=row.get('email'), - ), + user=User.objects.get(username=row.get('username')), course_id=row.get('course_id'), role=row.get('role'), )