Commit f3de2146 by Xavier Ordoquy

Merge pull request #3650 from silviogutierrez/master

Documentation fix for list serializers.
parents 378b7b89 ece79734
......@@ -800,6 +800,10 @@ Here's an example of how you might choose to implement multiple updates:
return ret
class BookSerializer(serializers.Serializer):
# 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()
...
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