Support cohorting students via a CSV File.

TNL-735
This commit is contained in:
Daniel Friedman
2014-11-06 17:21:29 -05:00
committed by cahrens
parent 69fd063d95
commit 3d91f43030
42 changed files with 2139 additions and 251 deletions

View File

@@ -12,6 +12,7 @@ from opaque_keys.edx.locations import SlashSeparatedCourseKey
from courseware.courses import get_course_with_access
from edxmako.shortcuts import render_to_response
from util.json_request import JsonResponse
from . import cohorts
from .models import CourseUserGroup
@@ -23,7 +24,7 @@ def json_http_response(data):
Return an HttpResponse with the data json-serialized and the right content
type header.
"""
return HttpResponse(json.dumps(data), content_type="application/json")
return JsonResponse(data)
def split_by_comma_and_whitespace(cstr):