Skip to content

Commit

Permalink
fix: get by username only
Browse files Browse the repository at this point in the history
  • Loading branch information
varshamenon4 committed Mar 29, 2024
1 parent e4f5931 commit 87fdab0
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
)
Expand Down

0 comments on commit 87fdab0

Please sign in to comment.