Commit dd3d54de by Dennis Jen

Merge pull request #114 from edx/dsjen/unicode-check

Upgrade elasticsearch-dsl.
parents 0d6f8e42 1fb94ddb
......@@ -336,7 +336,7 @@ class RosterEntry(DocType):
search.query.must.append(Q('multi_match', query=text_search, fields=['name', 'username', 'email']))
# construct the sort hierarchy
search = search.sort(*[
search_request = search.sort(*[
{
sort_policy['order_by']: {
'order': sort_policy['sort_order'],
......@@ -347,7 +347,7 @@ class RosterEntry(DocType):
for sort_policy in sort_policies
])
return search
return search_request
@classmethod
def get_course_metadata(cls, course_id):
......
# -*- coding: utf-8 -*-
import copy
import datetime
from itertools import groupby
......@@ -272,6 +274,7 @@ class LearnerListTests(LearnerAPITestMixin, VerifyCourseIdMixin, TestCaseWithAut
('cohort', 'a', 'cohort', 'a', True),
('cohort', 'a', 'cohort', '', True),
('cohort', 'a', 'cohort', 'b', False),
('cohort', u'Ich möchte Brot zu essen.', 'cohort', u'Ich möchte Brot zu essen.', True),
('enrollment_mode', 'a', 'enrollment_mode', 'a', True),
('enrollment_mode', 'a', 'enrollment_mode', '', True),
('enrollment_mode', 'a', 'enrollment_mode', 'b', False),
......
......@@ -5,7 +5,7 @@ djangorestframework==2.4.4 # BSD
django-rest-swagger==0.2.8 # BSD
djangorestframework-csv==1.3.3 # BSD
django-countries==3.2 # MIT
elasticsearch-dsl==0.0.9 # Apache 2.0
elasticsearch-dsl==0.0.11 # Apache 2.0
# markdown is used by swagger for rendering the api docs
Markdown==2.6 # BSD
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment