              # Ignore MSIE's broken accept behavior and do something sensible instead
              accept_list = ['text/html', '*/*']
          elif request.META.has_key('HTTP_ACCEPT'):
              # Use standard HTTP Accept negotiation
              accept_list = [token.strip() for token in request.META["HTTP_ACCEPT"].split(',')]
          else:
              # No accept header specified
              accept_list = ['*/*']
  
          # Check the acceptable media types against each renderer,
 
</s> remove               request.META.has_key('HTTP_USER_AGENT') and
 </s> add               'HTTP_USER_AGENT' in request.META and </s> remove         elif request.META.has_key('HTTP_ACCEPT'):
 </s> add         elif 'HTTP_ACCEPT' in request.META:
            accept_list = [token.strip() for token in request.META['HTTP_ACCEPT'].split(',')]
              # Ignore MSIE's broken accept behavior and do something sensible instead
              accept_list = ['text/html', '*/*']
          elif request.META.has_key('HTTP_ACCEPT'):
              # Use standard HTTP Accept negotiation
            accept_list = [token.strip() for token in request.META['HTTP_ACCEPT'].split(',')]
          else:
              # No accept header specified
              accept_list = ['*/*']
  
          # Check the acceptable media types against each renderer,
keep keep keep keep replace keep keep keep keep keep
 Replace 'x.has_key(y)' with 'y in x' 
djangorestframework/mixins.py