Commit 680fabe9 by Dave King

Update fields.md

obj.__class__ will return the actual Class object, we want to serialise a string (accessed with obj.__class__.__name__)
parent dd2e950c
...@@ -347,7 +347,7 @@ As an example, let's create a field that can be used represent the class name of ...@@ -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. Serialize the object's class name.
""" """
return obj.__class__ return obj.__class__.__name__
# Third party packages # Third party packages
......
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