          self.renderer_context = renderer_context or {}
  
          template = loader.get_template(self.template)
          context = self.get_context(data, accepted_media_type, renderer_context)
          ret = template_render(template, context, request=renderer_context['request'])
  
          # Munge DELETE Response code to allow us to return content
          # (Do this *after* we've rendered the template so that we include
          # the normal deletion response code in the output)
          response = renderer_context['response']
 
</s> remove         ret = template_render(template, context, request=renderer_context['request'])
 </s> add         ret = template.render(context, request=renderer_context['request']) </s> remove         return template_render(template, context)
 </s> add         return template.render(context) </s> remove             return Template('%d %s' % (response.status_code,
                                       response.status_text.title()))
 </s> add             body = '%d %s' % (response.status_code, response.status_text.title())
            template = engines['django'].from_string(body)
            return template </s> remove             ret.append(url(regex, include(patterns, namespace, app_name), kwargs))

 </s> add             ret.append(url(regex, include((patterns, app_name), namespace), kwargs)) </s> remove         return template_render(template, context, request=request)
 </s> add         return template.render(context, request=request)
        ret = template.render(context, request=renderer_context['request'])
          self.renderer_context = renderer_context or {}
  
          template = loader.get_template(self.template)
          context = self.get_context(data, accepted_media_type, renderer_context)
        ret = template.render(context, request=renderer_context['request'])
  
          # Munge DELETE Response code to allow us to return content
          # (Do this *after* we've rendered the template so that we include
          # the normal deletion response code in the output)
          response = renderer_context['response']
keep keep keep keep replace keep keep keep keep keep
 Remove Django 1.8 & 1.9 compatibility code (#5481)

* Identify code that needs to be pulled out of/removed from compat.py

* Extract modern code from get_names_and_managers in compat.py and remove compat code

* Extract modern code from is_authenticated() in compat.py and remove.

* Extract modern code from is_anonymous() in compat.py and remove

* Extract modern code from get_related_model() from compat.py and remove

* Extract modern code from value_from_object() in compat.py and remove

* Update postgres compat

JSONField now always available.

* Remove DecimalValidator compat

* Remove get_remote_field compat

* Remove template_render compat

Plus isort.

* Remove set_many compat

* Remove include compat 
rest_framework/renderers.py