aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide
diff options
context:
space:
mode:
authorDavid Ray2014-12-02 09:46:43 -0500
committerDavid Ray2014-12-02 09:46:43 -0500
commit84cff98fbf72355cb5e8359aa1c9b5568c289cbf (patch)
treeed35fed825c0908ca819ffaa867be67dfd5712d9 /docs/api-guide
parent0359e9250d34e18aef2db6216f24c130a4f51fce (diff)
downloaddjango-rest-framework-84cff98fbf72355cb5e8359aa1c9b5568c289cbf.tar.bz2
fix typo
Diffstat (limited to 'docs/api-guide')
-rw-r--r--docs/api-guide/serializers.md2
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)