test_views.py
12 KB
-
Patch the bulk_enroll request to use a form content type · 1990dc7f
Setting the content type to be form data makes Django Rest Framework v3.6.3 treat all passed JSON data as POST parameters. This is necessary because this request is forwarded on to the student_update_enrollment view, which requires all of the parameters to be passed in via POST parameters.
Brandon DeRosier committed