aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/fields.md
diff options
context:
space:
mode:
authorJamie Matthews2012-11-19 17:24:08 +0000
committerJamie Matthews2012-11-19 17:24:08 +0000
commit3ab8c4966d065e930bd6e8bc6c26934ae5c5918c (patch)
tree78584e923122c14e0e77fa92fcbd2e991ca15584 /docs/api-guide/fields.md
parentde5b071d677074ab3b6b33a843c4b05ba2052a6b (diff)
downloaddjango-rest-framework-3ab8c4966d065e930bd6e8bc6c26934ae5c5918c.tar.bz2
Tweaks to SerializerMethodField docs
Diffstat (limited to 'docs/api-guide/fields.md')
-rw-r--r--docs/api-guide/fields.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md
index b19c324a..ebfb5d47 100644
--- a/docs/api-guide/fields.md
+++ b/docs/api-guide/fields.md
@@ -328,7 +328,7 @@ This field is always read-only.
## SerializerMethodField
-This is a read-only field gets its value by calling a method on the serializer class it's attached to. It can be used to add any sort of data to the serialized representation of your object. The field's constructor accepts a single argument, which is the name of the method on the serializer to be called. The method 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.
+This is a read-only field. It gets its value by calling a method on the serializer class it is attached to. It can be used to add any sort of data to the serialized representation of your object. The field's constructor accepts a single argument, which is the name of the method on the serializer to be called. The method 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.
[cite]: http://www.python.org/dev/peps/pep-0020/
[FILE_UPLOAD_HANDLERS]: https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-FILE_UPLOAD_HANDLERS