def _inactivate_organization(organization):
[_inactivate_organization_course_relationship(record) for record<EOL>in internal.OrganizationCourse.objects.filter(organization_id=organization.id, active=True)]<EOL>[_inactivate_record(record) for record<EOL>in internal.Organization.objects.filter(id=organization.id, active=True)]<EOL>
Inactivates an activated organization as well as any active relationships