<s> from rest_framework . negotiation import DefaultContentNegotiation <EOL> class JSONAPIContentNegotiation ( DefaultContentNegotiation ) : <EOL> def select_renderer ( self , request , renderers , format_suffix = None ) : <EOL> """<STR_LIT>""" <EOL> accepts = self . get_accept_list ( request ) <EOL> if '<STR_LIT:application/json>' in accepts : <EOL> return ( renderers [ <NUM_LIT:0> ] , renderers [ <NUM_LIT:0> ] . media_type ) <EOL> return super ( JSONAPIContentNegotiation , self ) . select_renderer ( request , renderers ) </s>
