  
          if response and response.exception:
              request = renderer_context['request']
              template = self.get_exception_template(response)
              context = self.resolve_context(data, request, response)
              return template_render(template, context, request=request)
  
          return data
  
  
 
</s> remove         context = self.get_template_context(data, renderer_context)
 </s> add         if hasattr(self, 'resolve_context'):
            # Fallback for older versions.
            context = self.resolve_context(self, data, request, response)
        else:
            context = self.get_template_context(data, renderer_context) </s> remove __version__ = '3.4.2'
 </s> add __version__ = '3.4.3'
            if hasattr(self, 'resolve_context'):
                context = self.resolve_context(data, request, response)
            else:
                context = self.get_template_context(data, renderer_context)
  
          if response and response.exception:
              request = renderer_context['request']
              template = self.get_exception_template(response)
            if hasattr(self, 'resolve_context'):
                context = self.resolve_context(data, request, response)
            else:
                context = self.get_template_context(data, renderer_context)
              return template_render(template, context, request=request)
  
          return data
  
  
keep keep keep keep replace keep keep keep keep keep
 Version 3.4.3 (#4361)

* Version 3.4.3 
rest_framework/renderers.py