def create_organization_course(organization, course_key):
organization_obj = serializers.deserialize_organization(organization)<EOL>try:<EOL><INDENT>relationship = internal.OrganizationCourse.objects.get(<EOL>organization=organization_obj,<EOL>course_id=text_type(course_key)<EOL>)<EOL>if not relationship.active:<EOL><INDENT>_activate_organization_course_relationship(relationship)<EOL><DEDENT><DEDENT>except internal.OrganizationCourse.DoesNotExist:<EOL><INDENT>relationship = internal.OrganizationCourse.objects.create(<EOL>organization=organization_obj,<EOL>course_id=text_type(course_key),<EOL>active=True<EOL>)<EOL><DEDENT>
Inserts a new organization-course relationship into app/local state
No response currently defined for this operation