diff options
| author | José Padilla | 2015-01-25 09:42:41 -0400 |
|---|---|---|
| committer | José Padilla | 2015-01-25 09:42:41 -0400 |
| commit | 221a28ff92e20e596941118631f6a4a6a63cac9b (patch) | |
| tree | 9364940164802b1da8336af9157578afe529fbad | |
| parent | 9687f4ffaebe87e60d674eed552be460449684de (diff) | |
| parent | 0a65913fea471e7545896bd88760be8b26a3225e (diff) | |
| download | django-rest-framework-221a28ff92e20e596941118631f6a4a6a63cac9b.tar.bz2 | |
Merge pull request #2458 from jfw/patch-3
typo in fields.md
| -rw-r--r-- | docs/api-guide/fields.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md index 1c78a42b..10291c12 100644 --- a/docs/api-guide/fields.md +++ b/docs/api-guide/fields.md @@ -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: |
