  
      perm_format = '%(app_label)s.view_%(model_name)s'
  
      def filter_queryset(self, request, queryset, view):
          user = request.user
          model_cls = queryset.model
          kwargs = {
              'app_label': model_cls._meta.app_label,
              'model_name': get_model_name(model_cls)
          }
 
</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
        ) </s> remove     parse_duration, unicode_repr, unicode_to_repr
 </s> add     parse_duration, unicode_repr, unicode_to_repr, get_filepathfield
        extra = {}
  
      perm_format = '%(app_label)s.view_%(model_name)s'
  
      def filter_queryset(self, request, queryset, view):
        extra = {}
          user = request.user
          model_cls = queryset.model
          kwargs = {
              'app_label': model_cls._meta.app_label,
              'model_name': get_model_name(model_cls)
          }
keep keep keep add keep keep keep keep keep keep
 fix bugs, move version branching to compat, update ModelSerializer mapping 
rest_framework/filters.py