Commit 2946251c by koliber

Added explicit id field in multi update example

If the id field is implicitly created, it is created as `read_only=True`. This causes the data validation step to remove the id values in the validated data.
parent 1b53e804
......@@ -774,6 +774,11 @@ Here's an example of how you might choose to implement multiple updates:
class BookSerializer(serializers.Serializer):
...
id = serializers.IntegerField(
read_only=False,
required=False
)
class Meta:
list_serializer_class = BookListSerializer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment