Skip to content

Commit 84cff98

Browse files
committed
fix typo
1 parent 0359e92 commit 84cff98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/serializers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ If we want to be able to return complete object instances based on the validated
9696
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:
9797

9898
def create(self, validated_data):
99-
return Comment.objcts.create(**validated_data)
99+
return Comment.objects.create(**validated_data)
100100

101101
def update(self, instance, validated_data):
102102
instance.email = validated_data.get('email', instance.email)

0 commit comments

Comments
 (0)