File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -283,10 +283,10 @@ def request_wants_html(cls, request):
283
283
accepted_length = len (accepted )
284
284
#the list will be ordered in preferred first - so we have to make
285
285
#sure the most preferred gets the highest number
286
- html_index = accepted_length - accepted .index ('text/html' ) if 'text/html' in accepted else 0
287
- json_index = accepted_length - accepted .index ('application/json' ) if 'application/json' in accepted else 0
286
+ html_priority = accepted_length - accepted .index ('text/html' ) if 'text/html' in accepted else 0
287
+ json_priority = accepted_length - accepted .index ('application/json' ) if 'application/json' in accepted else 0
288
288
289
- return html_index > json_index
289
+ return html_priority > json_priority
290
290
291
291
@staticmethod
292
292
def get_graphql_params (request , data ):
You can’t perform that action at this time.
0 commit comments