From 32d91e089bc38836697e82f5d77bddfa8a96d983 Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 14 May 2022 22:13:30 +0100 Subject: [PATCH] documenting use of setting --- docs/api-guide/serializers.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api-guide/serializers.md b/docs/api-guide/serializers.md index da57ac0a4..cb308d17c 100644 --- a/docs/api-guide/serializers.md +++ b/docs/api-guide/serializers.md @@ -255,7 +255,8 @@ When passing data to a serializer instance, the unmodified data will be made ava ## 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. +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` +with `partial=True`. # Update `comment` with partial data serializer = CommentSerializer(comment, data={'content': 'foo bar'}, partial=True)