diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md index 58dbf977e..6d1adcb03 100644 --- a/docs/api-guide/fields.md +++ b/docs/api-guide/fields.md @@ -347,7 +347,7 @@ As an example, let's create a field that can be used represent the class name of """ Serialize the object's class name. """ - return obj.__class__ + return obj.__class__.__name__ # Third party packages