Commit 2c23f6e4 by John Eskew Committed by GitHub

Merge pull request #79 from edx/jeskew/drf_upgrade

Upgrade DRF version.
parents fcd59d72 6ee02814
...@@ -100,7 +100,7 @@ class CourseSerializer(serializers.RelatedField): ...@@ -100,7 +100,7 @@ class CourseSerializer(serializers.RelatedField):
Convert data into CourseVideo instance and image filename tuple. Convert data into CourseVideo instance and image filename tuple.
""" """
course_id = data course_id = data
course_video = image = None course_video = image = ''
if data: if data:
if isinstance(data, dict): if isinstance(data, dict):
(course_id, image), = data.items() (course_id, image), = data.items()
......
...@@ -498,7 +498,7 @@ class VideoListTest(APIAuthTestCase): ...@@ -498,7 +498,7 @@ class VideoListTest(APIAuthTestCase):
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual( self.assertEqual(
response.data.get("edx_video_id")[0], response.data.get("edx_video_id")[0],
"This field must be unique." u'video with this edx video id already exists.'
) )
videos = len(self.client.get("/edxval/videos/").data) videos = len(self.client.get("/edxval/videos/").data)
self.assertEqual(videos, 1) self.assertEqual(videos, 1)
......
django>=1.8,<1.9 django>=1.8,<1.9
djangorestframework>=3.1,<3.2 git+https://github.com/edx/django-rest-framework.git@1ceda7c086fddffd1c440cc86856441bbf0bd9cb#egg=djangorestframework==3.6.3
enum34==1.0.4 enum34==1.0.4
lxml==3.3.6 lxml==3.3.6
-e git+https://github.com/edx/django-oauth2-provider.git@0.2.7-fork-edx-6a#egg=django-oauth2-provider==0.2.7-fork-edx-6 -e git+https://github.com/edx/django-oauth2-provider.git@0.2.7-fork-edx-6a#egg=django-oauth2-provider==0.2.7-fork-edx-6
......
...@@ -39,7 +39,7 @@ def load_requirements(*requirements_paths): ...@@ -39,7 +39,7 @@ def load_requirements(*requirements_paths):
setup( setup(
name='edxval', name='edxval',
version='0.0.17', version='0.0.18',
author='edX', author='edX',
url='http://github.com/edx/edx-val', url='http://github.com/edx/edx-val',
description='edx-val', description='edx-val',
......
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