  from rest_framework import ISO_8601
  from rest_framework.compat import (
      EmailValidator, MaxLengthValidator, MaxValueValidator, MinLengthValidator,
      MinValueValidator, OrderedDict, URLValidator, duration_string,
      parse_duration, unicode_repr, unicode_to_repr
  )
  from rest_framework.exceptions import ValidationError
  from rest_framework.settings import api_settings
  from rest_framework.utils import html, humanize_datetime, representation
  
 
</s> remove         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
            )
 </s> add         field = get_filepathfield(
            path, match=match, recursive=recursive, allow_files=allow_files,
            allow_folders=allow_folders, required=required
        )
    parse_duration, unicode_repr, unicode_to_repr, get_filepathfield
  from rest_framework import ISO_8601
  from rest_framework.compat import (
      EmailValidator, MaxLengthValidator, MaxValueValidator, MinLengthValidator,
      MinValueValidator, OrderedDict, URLValidator, duration_string,
    parse_duration, unicode_repr, unicode_to_repr, get_filepathfield
  )
  from rest_framework.exceptions import ValidationError
  from rest_framework.settings import api_settings
  from rest_framework.utils import html, humanize_datetime, representation
  
keep keep keep keep replace keep keep keep keep keep
 fix bugs, move version branching to compat, update ModelSerializer mapping 
rest_framework/fields.py