          )
  
          ModelClass = self.Meta.model
  
          # Remove many-to-many relationships from validated_attrs.
          # They are not valid arguments to the default `.create()` method,
          # as they require that the instance has already been saved.
          info = model_meta.get_field_info(ModelClass)
          many_to_many = {}
          for field_name, relation_info in info.relations.items():
 
</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) </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             return ExampleModel.objects.create(**validated_attrs)
 </s> add             return ExampleModel.objects.create(**validated_data) </s> remove         for attr, value in validated_attrs.items():
 </s> add         for attr, value in validated_data.items():
        # Remove many-to-many relationships from validated_data.
          )
  
          ModelClass = self.Meta.model
  
        # Remove many-to-many relationships from validated_data.
          # They are not valid arguments to the default `.create()` method,
          # as they require that the instance has already been saved.
          info = model_meta.get_field_info(ModelClass)
          many_to_many = {}
          for field_name, relation_info in info.relations.items():
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