def get_ccx_creation_dict(course):
 context = {'course': course, 'create_ccx_url': reverse('create_ccx', kwargs={'course_id': course.id}), 'has_ccx_connector': ('true' if (hasattr(course, 'ccx_connector') and course.ccx_connector) else 'false'), 'use_ccx_con_error_message': _('A CCX can only be created on this course through an external service. Contact a course admin to give you access.')}
 return context

def get_ccx_creation_dict ( course ) : context = { 'course' : course , 'create_ccx_url' : reverse ( 'create_ccx' , kwargs = { 'course_id' : course . id } ) , 'has_ccx_connector' : ( 'true' if ( hasattr ( course , 'ccx_connector' ) and course . ccx_connector ) else 'false' ) , 'use_ccx_con_error_message' : _ ( 'A CCX can only be created on this course through an external service. Contact a course admin to give you access.' ) } return context
return dict of rendering create ccx form .