Closed giocalitri closed 8 years ago
Bug found while writing the script to create CCX using CCXCon.
This is as easy as changing the request in views.py -> create_ccx from
views.py
create_ccx
try: resp = requests.post( '{instance}/api/ccx/v0/ccx/'.format(instance=course.edx_instance.instance_url), data=payload, headers={ 'Authorization': 'Bearer {}'.format(access_token), })
to
try: resp = requests.post( '{instance}/api/ccx/v0/ccx/'.format(instance=course.edx_instance.instance_url), json=payload, headers={ 'Authorization': 'Bearer {}'.format(access_token), })
and update tests
Bug found while writing the script to create CCX using CCXCon.
This is as easy as changing the request in
views.py
->create_ccx
fromto
and update tests