Fix Course representation on save

remotes/origin/hasaccess
Ivlev Denis 8 years ago
parent 585116fcc0
commit 455f6ebe0f
  1. 3
      api/v1/serializers/course.py

@ -139,6 +139,9 @@ class CourseCreateSerializer(DispatchContentMixin,
self.dispatch_gallery(course, gallery)
return course
def to_representation(self, instance):
return CourseSerializer(obj, context=self.context).to_representation(obj)
class CourseSerializer(CourseCreateSerializer):
category = CategorySerializer()

Loading…
Cancel
Save