      """
      return _MediaType(media_type).params
  
  
  
  class _MediaType(object):
      def __init__(self, media_type_str):
          if media_type_str is None:
              media_type_str = ''
 
</s> remove         context = RequestContext(self.request, obj)
        return self.template.render(context)
 </s> add         template = loader.get_template(self.template)
        context = RequestContext(self.view.request, {'object': obj})
        return template.render(context)
def order_by_precedence(media_type_lst):
    """
    Returns a list of lists of media type strings, ordered by precedence.
    Precedence is determined by how specific a media type is:

    3. 'type/subtype; param=val'
    2. 'type/subtype'
    1. 'type/*'
    0. '*/*'
    """
    ret = [[],[],[],[]]
    for media_type in media_type_lst:
        precedence = _MediaType(media_type).precedence
        ret[3-precedence].append(media_type)
    return ret

      """
      return _MediaType(media_type).params
  
  
def order_by_precedence(media_type_lst):
    """
    Returns a list of lists of media type strings, ordered by precedence.
    Precedence is determined by how specific a media type is:

    3. 'type/subtype; param=val'
    2. 'type/subtype'
    1. 'type/*'
    0. '*/*'
    """
    ret = [[],[],[],[]]
    for media_type in media_type_lst:
        precedence = _MediaType(media_type).precedence
        ret[3-precedence].append(media_type)
    return ret

  
  class _MediaType(object):
      def __init__(self, media_type_str):
          if media_type_str is None:
              media_type_str = ''
keep keep keep add keep keep keep keep keep
 Renderers can now cope with parameterised args.  ResponseMixin gets cleaned up & added Renderer.can_handle_response(), mirroring Parsers.can_handle_request() 
djangorestframework/utils/mediatypes.py