Skip to content

Commit

Permalink
Merge pull request encode#2458 from jfw/patch-3
Browse files Browse the repository at this point in the history
typo in fields.md
  • Loading branch information
jpadilla committed Jan 25, 2015
2 parents 9687f4f + 0a65913 commit 221a28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-guide/fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ This is a read-only field. It gets its value by calling a method on the serializ

**Signature**: `SerializerMethodField(method_name=None)`

- `method-name` - The name of the method on the serializer to be called. If not included this defaults to `get_<field_name>`.
- `method_name` - The name of the method on the serializer to be called. If not included this defaults to `get_<field_name>`.

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:

Expand Down

0 comments on commit 221a28f

Please sign in to comment.