Commit 121e7734 by Uman Shahzad Committed by Uman Shahzad

Add course run `weeks_to_complete` to serializer.

parent ff57aaaa
......@@ -475,7 +475,7 @@ class CourseRunSerializer(MinimalCourseRunSerializer):
class Meta(MinimalCourseRunSerializer.Meta):
fields = MinimalCourseRunSerializer.Meta.fields + (
'course', 'full_description', 'announcement', 'video', 'seats', 'content_language',
'transcript_languages', 'instructors', 'staff', 'min_effort', 'max_effort', 'modified',
'transcript_languages', 'instructors', 'staff', 'min_effort', 'max_effort', 'weeks_to_complete', 'modified',
'level_type', 'availability', 'mobile_available', 'hidden', 'reporting_type', 'eligible_for_financial_aid'
)
......
......@@ -260,6 +260,7 @@ class CourseRunSerializerTests(MinimalCourseRunSerializerTests):
'transcript_languages': [],
'min_effort': course_run.min_effort,
'max_effort': course_run.max_effort,
'weeks_to_complete': course_run.weeks_to_complete,
'instructors': [],
'staff': [],
'seats': [],
......
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