              ret[key] = value
              ret.fields[key] = field
          return ret
  
      def restore_fields(self, data):
          """
          Core of deserialization, together with `restore_object`.
          Converts a dictionary of data into a dictionary of deserialized fields.
          """
          fields = self.get_fields(nested=bool(self.opts.depth))
 
</s> remove                 field.field_from_native(data, field_name, reverted_data)
 </s> add                 if isinstance(field, (FileField, ImageField)):
                    field.field_from_native(files, field_name, reverted_data)
                else:
                    field.field_from_native(data, field_name, reverted_data) </s> remove         # TODO: add support for files
 </s> add 
    def restore_fields(self, data, files):
              ret[key] = value
              ret.fields[key] = field
          return ret
  
    def restore_fields(self, data, files):
          """
          Core of deserialization, together with `restore_object`.
          Converts a dictionary of data into a dictionary of deserialized fields.
          """
          fields = self.get_fields(nested=bool(self.opts.depth))
keep keep keep keep replace keep keep keep keep keep
 Added a FileField and an ImageField (copied from django.forms.fields).
Adjusted generics, mixins and serializers to take a `files` arg where applicable. 
rest_framework/serializers.py