              files = dict(files)
  
          if request.method == 'POST':
              # Django has already done the form parsing for us.
              data = dict(request.POST)
              files = dict(request.FILES)
  
          # Flattening, then merging the POSTED/PUT data/files
          for key, val in dict(data).items():
              data[key] = val[0]
          for key, val in dict(files).items():
              files[key] = val[0].read()
          data.update(files)
          
          # Strip any parameters that we are treating as reserved
          for key in data:
              if key in self.resource.RESERVED_FORM_PARAMS:
 
</s> remove             data = dict(request.POST.items())
 </s> add             data = request.POST

        data = self.flatten_data(data) </s> remove         if request.method == 'POST':
 </s> add         elif request.method == 'POST': </s> remove             # Flattening the parsed query data
            for key, val in data.items():
                data[key] = val[0]
 </s> add  </s> remove             data = dict(data)
            files = dict(files)
 </s> add  </s> remove 
class FormParser(BaseParser):
 </s> add class DataFlatener(object):

    def flatten_data(self, data):
        """Given a data dictionary ``{<attr_name>: <value_list>}``, returns a flattened dictionary according to :meth:`FormParser.is_a_list`.
        """
        #TODO : document + test
        flatdata = dict()
        for attr_name, attr_value in data.items():
            if self.is_a_list(attr_name):
                if isinstance(attr_value, list):
                    flatdata[attr_name] = attr_value
                else:
                    flatdata[attr_name] = [attr_value]
            else:
                if isinstance(attr_value, list):
                    flatdata[attr_name] = attr_value[0]
                else:
                    flatdata[attr_name] = attr_value 
        return flatdata

    def is_a_list(self, attr_name):
        """ """
        #TODO: document
        return False

class FormParser(BaseParser, DataFlatener):
            data = request.POST
            files = request.FILES

        data = self.flatten_data(data)
        files = self.flatten_data(files)
              files = dict(files)
  
          if request.method == 'POST':
              # Django has already done the form parsing for us.
            data = request.POST
            files = request.FILES

        data = self.flatten_data(data)
        files = self.flatten_data(files)
            data = request.POST
            files = request.FILES

        data = self.flatten_data(data)
        files = self.flatten_data(files)
            data = request.POST
            files = request.FILES

        data = self.flatten_data(data)
        files = self.flatten_data(files)
            data = request.POST
            files = request.FILES

        data = self.flatten_data(data)
        files = self.flatten_data(files)
            data = request.POST
            files = request.FILES

        data = self.flatten_data(data)
        files = self.flatten_data(files)
            data = request.POST
            files = request.FILES

        data = self.flatten_data(data)
        files = self.flatten_data(files)
            data = request.POST
            files = request.FILES

        data = self.flatten_data(data)
        files = self.flatten_data(files)
            data = request.POST
            files = request.FILES

        data = self.flatten_data(data)
        files = self.flatten_data(files)
          data.update(files)
          
          # Strip any parameters that we are treating as reserved
          for key in data:
              if key in self.resource.RESERVED_FORM_PARAMS:
keep keep keep keep replace replace replace replace replace replace replace replace keep keep keep keep keep
 forms and multipat parsers now flaten data 
djangorestframework/parsers.py