                   allow_folders=False, required=None, **kwargs):
          super(FilePathField, self).__init__(**kwargs)
  
          # create field and get options to avoid code duplication
          if django.VERSION < (1, 5):
              # django field doesn't have allow_folders, allow_files kwargs
              field = DjangoFilePathField(
                  path, match=match, recursive=recursive, required=required
              )
          else:
              field = DjangoFilePathField(
                  path, match=match, recursive=recursive, allow_files=allow_files,
                  allow_folders=allow_folders, required=required
              )
  
          self.choices = OrderedDict(field.choices)
          self.choice_strings_to_values = dict([
              (six.text_type(key), key) for key in self.choices.keys()
          ])
 
</s> remove     parse_duration, unicode_repr, unicode_to_repr
 </s> add     parse_duration, unicode_repr, unicode_to_repr, get_filepathfield
        field = get_filepathfield(
            path, match=match, recursive=recursive, allow_files=allow_files,
            allow_folders=allow_folders, required=required
        )
                   allow_folders=False, required=None, **kwargs):
          super(FilePathField, self).__init__(**kwargs)
  
          # create field and get options to avoid code duplication
        field = get_filepathfield(
            path, match=match, recursive=recursive, allow_files=allow_files,
            allow_folders=allow_folders, required=required
        )
        field = get_filepathfield(
            path, match=match, recursive=recursive, allow_files=allow_files,
            allow_folders=allow_folders, required=required
        )
        field = get_filepathfield(
            path, match=match, recursive=recursive, allow_files=allow_files,
            allow_folders=allow_folders, required=required
        )
        field = get_filepathfield(
            path, match=match, recursive=recursive, allow_files=allow_files,
            allow_folders=allow_folders, required=required
        )
        field = get_filepathfield(
            path, match=match, recursive=recursive, allow_files=allow_files,
            allow_folders=allow_folders, required=required
        )
        field = get_filepathfield(
            path, match=match, recursive=recursive, allow_files=allow_files,
            allow_folders=allow_folders, required=required
        )
        field = get_filepathfield(
            path, match=match, recursive=recursive, allow_files=allow_files,
            allow_folders=allow_folders, required=required
        )
        field = get_filepathfield(
            path, match=match, recursive=recursive, allow_files=allow_files,
            allow_folders=allow_folders, required=required
        )
        field = get_filepathfield(
            path, match=match, recursive=recursive, allow_files=allow_files,
            allow_folders=allow_folders, required=required
        )
        field = get_filepathfield(
            path, match=match, recursive=recursive, allow_files=allow_files,
            allow_folders=allow_folders, required=required
        )
  
          self.choices = OrderedDict(field.choices)
          self.choice_strings_to_values = dict([
              (six.text_type(key), key) for key in self.choices.keys()
          ])
keep keep keep keep replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 fix bugs, move version branching to compat, update ModelSerializer mapping 
rest_framework/fields.py