removed some documentation edits

This commit is contained in:
iamr0b0x 2022-05-21 18:35:39 +01:00
parent 572ed7c3d4
commit 07871b32d2

View File

@ -255,8 +255,7 @@ When passing data to a serializer instance, the unmodified data will be made ava
## Partial updates ## Partial updates
By default, serializers must be passed values for all required fields or they will raise validation errors. You can use the `partial` argument in order to allow partial updates. Note that `STRICT_PARTIAL_UPDATE` must be set to `True` to enable field specific updates using `.save(update_fields=[...])` for `ModelSerializer` By default, serializers must be passed values for all required fields or they will raise validation errors. You can use the `partial` argument in order to allow partial updates.
with `partial=True`.
# Update `comment` with partial data # Update `comment` with partial data
serializer = CommentSerializer(comment, data={'content': 'foo bar'}, partial=True) serializer = CommentSerializer(comment, data={'content': 'foo bar'}, partial=True)