Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

Commit

Permalink
Changed get_or_create to create
Browse files Browse the repository at this point in the history
  • Loading branch information
George Schneeloch committed Sep 24, 2015
1 parent d84897c commit 8aad1ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion learningresources/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def create_course(org, repo_id, course_number, run, user_id):
"repository_id": repo_id,
}
with transaction.atomic():
course, _ = Course.objects.get_or_create(**kwargs)
course = Course.objects.create(**kwargs)
return course


Expand Down

0 comments on commit 8aad1ed

Please sign in to comment.