      def field_to_native(self, obj, field_name):
          request = self.context.get('request', None)
          view_name = self.view_name or self.parent.opts.view_name
          view_kwargs = {'pk': obj.pk}
          return reverse(view_name, kwargs=view_kwargs, request=request)
  
  
  ##### Typed Fields #####
  
  class BooleanField(WritableField):
 
</s> remove             return reverse(view_name, kwargs=kwargs, request=request)
 </s> add             return reverse(view_name, kwargs=kwargs, request=request, format=format) </s> remove class InvalidFormat(APIException):
    status_code = status.HTTP_404_NOT_FOUND
    default_detail = "Format suffix '.%s' not found."

    def __init__(self, format, detail=None):
        self.detail = (detail or self.default_detail) % format


 </s> add 
        return reverse(view_name, kwargs=view_kwargs, request=request, format=format)
      def field_to_native(self, obj, field_name):
          request = self.context.get('request', None)
          view_name = self.view_name or self.parent.opts.view_name
          view_kwargs = {'pk': obj.pk}
        return reverse(view_name, kwargs=view_kwargs, request=request, format=format)
  
  
  ##### Typed Fields #####
  
  class BooleanField(WritableField):
keep keep keep keep replace keep keep keep keep keep
 Fixes for urls with suffixes 
rest_framework/fields.py