Skip to content

Commit

Permalink
Merge pull request #2181 from daaray/patch-2
Browse files Browse the repository at this point in the history
Fix typo in serializers doc
  • Loading branch information
tomchristie committed Dec 2, 2014
2 parents 0359e92 + 84cff98 commit e335ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-guide/serializers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e335ad4

Please sign in to comment.