def link_cohort_to_partition_group(cohort, partition_id, group_id):
 CourseUserGroupPartitionGroup(course_user_group=cohort, partition_id=partition_id, group_id=group_id).save()

def link_cohort_to_partition_group ( cohort , partition_id , group_id ) : CourseUserGroupPartitionGroup ( course_user_group = cohort , partition_id = partition_id , group_id = group_id ) . save ( )
create cohort to partition_id/group_id link .