Commit 33a19e90 by Dave St.Germain

Rest Framework 2.4 requires request for serializers.HyperlinkedModelSerializer

parent bc3300fd
......@@ -84,7 +84,7 @@ class SubtitleSerializer(serializers.ModelSerializer):
)
class VideoSerializer(serializers.HyperlinkedModelSerializer):
class VideoSerializer(serializers.ModelSerializer):
"""
Serializer for Video object
......@@ -96,6 +96,7 @@ class VideoSerializer(serializers.HyperlinkedModelSerializer):
class Meta: # pylint: disable=C0111
model = Video
lookup_field = "edx_video_id"
exclude = ('id',)
def restore_fields(self, data, files):
"""
......
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