You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api-guide/serializers.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ Deserialization is similar. First we parse a stream into Python native datatypes
73
73
74
74
## Saving instances
75
75
76
-
If we want to be able to return complete object instances based on the validated data we need to implement one or both of the `.create()` and `update()` methods. For example:
76
+
If we want to be able to return complete object instances based on the validated data we need to implement one or both of the `.create()` and `.update()` methods. For example:
77
77
78
78
class CommentSerializer(serializers.Serializer):
79
79
email = serializers.EmailField()
@@ -325,7 +325,7 @@ For updates you'll want to think carefully about how to handle updates to relati
325
325
* Ignore the data and leave the instance as it is.
326
326
* Raise a validation error.
327
327
328
-
Here's an example for an `update()` method on our previous `UserSerializer` class.
328
+
Here's an example for an `.update()` method on our previous `UserSerializer` class.
0 commit comments