              '`%s.%s`, or set `read_only=True` on nested serializer fields.' %
              (self.__class__.__module__, self.__class__.__name__)
          )
  
          for attr, value in validated_attrs.items():
              setattr(instance, attr, value)
          instance.save()
          return instance
  
      def get_validators(self):
 
</s> remove     def update(self, instance, validated_attrs):
 </s> add     def update(self, instance, validated_data): </s> remove             example_relationship = validated_attrs.pop('example_relationship')
            instance = ExampleModel.objects.create(**validated_attrs)
 </s> add             example_relationship = validated_data.pop('example_relationship')
            instance = ExampleModel.objects.create(**validated_data) </s> remove         # Remove many-to-many relationships from validated_attrs.
 </s> add         # Remove many-to-many relationships from validated_data. </s> remove             return ExampleModel.objects.create(**validated_attrs)
 </s> add             return ExampleModel.objects.create(**validated_data) </s> remove     def create(self, validated_attrs):
 </s> add     def create(self, validated_data):
        for attr, value in validated_data.items():
              '`%s.%s`, or set `read_only=True` on nested serializer fields.' %
              (self.__class__.__module__, self.__class__.__name__)
          )
  
        for attr, value in validated_data.items():
              setattr(instance, attr, value)
          instance.save()
          return instance
  
      def get_validators(self):
keep keep keep keep replace keep keep keep keep keep
 Renamed validated_attrs to validated_data to be more in line with other similar code. 
rest_framework/serializers.py