              raise ValidationError({
                  api_settings.NON_FIELD_ERRORS_KEY: [message]
              }, code='invalid')
  
          ret = OrderedDict()
          errors = OrderedDict()
          fields = self._writable_fields
  
          for field in fields:
              validate_method = getattr(self, 'validate_' + field.field_name, None)
              primitive_value = field.get_value(data)
 
</s> remove     fields = OrderedDict()
 </s> add     fields = {} </s> remove         ret = OrderedDict()
 </s> add         ret = {} </s> remove         errors = OrderedDict()
 </s> add         errors = {} </s> remove         defaults = OrderedDict()
 </s> add         defaults = {} </s> remove         errors = OrderedDict()
 </s> add         errors = {}
        ret = {}
        errors = {}
              raise ValidationError({
                  api_settings.NON_FIELD_ERRORS_KEY: [message]
              }, code='invalid')
  
        ret = {}
        errors = {}
        ret = {}
        errors = {}
          fields = self._writable_fields
  
          for field in fields:
              validate_method = getattr(self, 'validate_' + field.field_name, None)
              primitive_value = field.get_value(data)
keep keep keep keep replace replace keep keep keep keep keep
 Replaced `OrderedDict` with `dict` (#8964) 
rest_framework/serializers.py