Skip to content

Commit 221a28f

Browse files
committed
Merge pull request encode#2458 from jfw/patch-3
typo in fields.md
2 parents 9687f4f + 0a65913 commit 221a28f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/fields.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ This is a read-only field. It gets its value by calling a method on the serializ
461461

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

464-
- `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>`.
465465

466466
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:
467467

0 commit comments

Comments
 (0)