diff options
| author | Stephan Groß | 2013-05-28 07:39:56 -0700 |
|---|---|---|
| committer | Stephan Groß | 2013-05-28 07:39:56 -0700 |
| commit | f6d7f54fc15ed3bb97b1d97ff1ecaf99e933660e (patch) | |
| tree | a1c18df58b9b8ae459d1c36ff083855e6c942844 /docs/api-guide/serializers.md | |
| parent | 22e1950e1cca237e6edeea3ddc9c798b975c6183 (diff) | |
| parent | 8f35ac4f93c608eaced3f48a46e8922104e09182 (diff) | |
| download | django-rest-framework-f6d7f54fc15ed3bb97b1d97ff1ecaf99e933660e.tar.bz2 | |
Merge pull request #897 from pborreli/typos
Fixed typos
Diffstat (limited to 'docs/api-guide/serializers.md')
| -rw-r--r-- | docs/api-guide/serializers.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/serializers.md b/docs/api-guide/serializers.md index c83a0967..053a5eaf 100644 --- a/docs/api-guide/serializers.md +++ b/docs/api-guide/serializers.md @@ -104,7 +104,7 @@ When deserializing a list of items, errors will be returned as a list of diction #### Field-level validation -You can specify custom field-level validation by adding `.validate_<fieldname>` methods to your `Serializer` subclass. These are analagous to `.clean_<fieldname>` methods on Django forms, but accept slightly different arguments. +You can specify custom field-level validation by adding `.validate_<fieldname>` methods to your `Serializer` subclass. These are analogous to `.clean_<fieldname>` methods on Django forms, but accept slightly different arguments. They take a dictionary of deserialized attributes as a first argument, and the field name in that dictionary as a second argument (which will be either the name of the field or the value of the `source` argument to the field, if one was provided). |
