MCPcopy Index your code
hub / github.com/encode/django-rest-framework / update

Method update

rest_framework/serializers.py:734–741  ·  view source on GitHub ↗
(self, instance, validated_data)

Source from the content-addressed store, hash-verified

732 return attrs
733
734 def update(self, instance, validated_data):
735 raise NotImplementedError(
736 "Serializers with many=True do not support multiple update by "
737 "default, only multiple create. For updates it is unclear how to "
738 "deal with insertions and deletions. If you need to support "
739 "multiple update, use a `ListSerializer` class and override "
740 "`.update()` so you can specify the behavior exactly."
741 )
742
743 def create(self, validated_data):
744 return [

Callers 1

saveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected