Commit c138c0a2 by Clinton Blackburn Committed by GitHub

Removed partner clause in data loader query (#189)

Reverting this as it is causing issues with our deployment. This should be restored once we have (a) a migration plan for existing data and (b) a rollout plan.

ECOM-5086
parent eb77aa24
......@@ -209,7 +209,8 @@ class CoursesApiDataLoader(AbstractDataLoader):
# which may not be unique for an organization.
course_run_key_str = body['id']
course_run_key = CourseKey.from_string(course_run_key_str)
organization, __ = Organization.objects.get_or_create(key=course_run_key.org, partner=self.partner)
organization, __ = Organization.objects.get_or_create(key=course_run_key.org,
defaults={'partner': self.partner})
course_key = self.convert_course_run_key(course_run_key_str)
defaults = {
'title': body['name'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment