Commit d771c66f by Simon Chen

Expose outcome to the course api

parent f71dad2b
...@@ -577,7 +577,7 @@ class CourseSerializer(MinimalCourseSerializer): ...@@ -577,7 +577,7 @@ class CourseSerializer(MinimalCourseSerializer):
model = Course model = Course
fields = MinimalCourseSerializer.Meta.fields + ( fields = MinimalCourseSerializer.Meta.fields + (
'short_description', 'full_description', 'level_type', 'subjects', 'prerequisites', 'prerequisites_raw', 'short_description', 'full_description', 'level_type', 'subjects', 'prerequisites', 'prerequisites_raw',
'expected_learning_items', 'video', 'sponsors', 'modified', 'marketing_url', 'syllabus_raw', 'expected_learning_items', 'video', 'sponsors', 'modified', 'marketing_url', 'syllabus_raw', 'outcome',
) )
def get_marketing_url(self, obj): def get_marketing_url(self, obj):
......
...@@ -151,6 +151,7 @@ class CourseSerializerTests(MinimalCourseSerializerTests): ...@@ -151,6 +151,7 @@ class CourseSerializerTests(MinimalCourseSerializerTests):
'owners': OrganizationSerializer(course.authoring_organizations, many=True).data, 'owners': OrganizationSerializer(course.authoring_organizations, many=True).data,
'prerequisites_raw': course.prerequisites_raw, 'prerequisites_raw': course.prerequisites_raw,
'syllabus_raw': course.syllabus_raw, 'syllabus_raw': course.syllabus_raw,
'outcome': course.outcome,
}) })
return expected return expected
......
...@@ -71,6 +71,7 @@ class CourseFactory(factory.DjangoModelFactory): ...@@ -71,6 +71,7 @@ class CourseFactory(factory.DjangoModelFactory):
partner = factory.SubFactory(PartnerFactory) partner = factory.SubFactory(PartnerFactory)
prerequisites_raw = FuzzyText() prerequisites_raw = FuzzyText()
syllabus_raw = FuzzyText() syllabus_raw = FuzzyText()
outcome = FuzzyText()
class Meta: class Meta:
model = Course model = Course
......
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