diff options
| author | Tom Christie | 2014-12-02 15:15:33 +0000 | 
|---|---|---|
| committer | Tom Christie | 2014-12-02 15:15:33 +0000 | 
| commit | 21236854539acef81d1eac3da707b711b4c31a0f (patch) | |
| tree | 228c13c486d5cf6b0a2ffb4b5b9d7b8c072a438a | |
| parent | 33096a1de6c20581caab36bc1af0e686d47483e7 (diff) | |
| parent | e335ad4a04f51e88b18bd9812b6c3cce6d5c9943 (diff) | |
| download | django-rest-framework-21236854539acef81d1eac3da707b711b4c31a0f.tar.bz2 | |
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
| -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 4c78473e..a011bb52 100644 --- a/docs/api-guide/serializers.md +++ b/docs/api-guide/serializers.md @@ -96,7 +96,7 @@ If we want to be able to return complete object instances based on the validated  If your object instances correspond to Django models you'll also want to ensure that these methods save the object to the database. For example, if `Comment` was a Django model, the methods might look like this:          def create(self, validated_data): -            return Comment.objcts.create(**validated_data) +            return Comment.objects.create(**validated_data)          def update(self, instance, validated_data):              instance.email = validated_data.get('email', instance.email) | 
