          models.URLField: URLField,
      })
      _related_class = PrimaryKeyRelatedField
  
      def create(self, validated_attrs):
          """
          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:
  
 
</s> remove             return ExampleModel.objects.create(**validated_attrs)
 </s> add             return ExampleModel.objects.create(**validated_data) </s> remove             instance = ModelClass.objects.create(**validated_attrs)
 </s> add             instance = ModelClass.objects.create(**validated_data) </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         for attr, value in validated_attrs.items():
 </s> add         for attr, value in validated_data.items():
    def create(self, validated_data):
          models.URLField: URLField,
      })
      _related_class = PrimaryKeyRelatedField
  
    def create(self, 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:
  
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