You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`method-name` - The name of the method on the serializer to be called. If not included this defaults to `get_<field_name>`.
464
+
-`method_name` - The name of the method on the serializer to be called. If not included this defaults to `get_<field_name>`.
465
465
466
466
The serializer method referred to by the `method_name` argument should accept a single argument (in addition to `self`), which is the object being serialized. It should return whatever you want to be included in the serialized representation of the object. For example:
0 commit comments