mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-06-30 02:13:29 +03:00
Updated comment.
This commit is contained in:
parent
f7646627f1
commit
ece7973479
|
@ -800,7 +800,8 @@ Here's an example of how you might choose to implement multiple updates:
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
class BookSerializer(serializers.Serializer):
|
class BookSerializer(serializers.Serializer):
|
||||||
# You must explicitly mark the primary key as editable.
|
# We need to identify elements in the list using their primary key,
|
||||||
|
# so use a writable field here, rather than the default which would be read-only.
|
||||||
id = serializers.IntegerField()
|
id = serializers.IntegerField()
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user