def get_serializer_class(self):
if self.request.method in ('<STR_LIT:GET>', ):<EOL><INDENT>return serializers.EnterpriseCourseEnrollmentReadOnlySerializer<EOL><DEDENT>return serializers.EnterpriseCourseEnrollmentWriteSerializer<EOL>
Use a special serializer for any requests that aren't read-only.