Commit cc18b9bf authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Update id for serializer context

parent bdb28879
......@@ -72,6 +72,6 @@ class ClassSerializer(WorkspaceBaseSerializerMixin, serializers.ModelSerializer)
return updated_class
def get_students_serializer(self, obj):
serializer_context = { 'course_id': obj.id }
serializer_context = { 'course_id': obj.course.id }
serializer = ClassSimpleUserSerializer(obj.valid_students, many=True, read_only=True, context=serializer_context)
return serializer.data
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