          We have a bit of extra checking around this in order to provide
          descriptive messages when something goes wrong, but this method is
          essentially just:
  
              return ExampleModel.objects.create(**validated_attrs)
  
          If there are many to many fields present on the instance then they
          cannot be set until the model is instantiated, in which case the
          implementation is like so:
  
 
</s> remove     def create(self, validated_attrs):
 </s> add     def create(self, 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             instance = ModelClass.objects.create(**validated_attrs)
 </s> add             instance = ModelClass.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             if relation_info.to_many and (field_name in validated_attrs):
                many_to_many[field_name] = validated_attrs.pop(field_name)
 </s> add             if relation_info.to_many and (field_name in validated_data):
                many_to_many[field_name] = validated_data.pop(field_name)
            return ExampleModel.objects.create(**validated_data)
          We have a bit of extra checking around this in order to provide
          descriptive messages when something goes wrong, but this method is
          essentially just:
  
            return ExampleModel.objects.create(**validated_data)
  
          If there are many to many fields present on the instance then they
          cannot be set until the model is instantiated, in which case the
          implementation is like so:
  
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