Commit a09ddbe6 authored by Glaucia S. Santos's avatar Glaucia S. Santos
Browse files

Insert new field in serializer

parent e233fb73
......@@ -81,6 +81,7 @@ class CourseSerializer(serializers.ModelSerializer):
class BasicCourseSerializer(serializers.ModelSerializer):
home_thumbnail_url = serializers.SerializerMethodField()
professors = SimpleUserSerializer(read_only=True, many=True)
class Meta:
model = Course
......@@ -95,6 +96,7 @@ class BasicCourseSerializer(serializers.ModelSerializer):
"has_started",
"min_percent_to_complete",
"is_public",
"professors"
)
@staticmethod
......
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