mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-12 09:12:18 +03:00
fix for 2.7.x because in tox <yuck>
This commit is contained in:
parent
ca1f7a40b9
commit
123139487f
|
@ -1,8 +1,10 @@
|
|||
from __future__ import print_function
|
||||
import six
|
||||
|
||||
import inspect
|
||||
import json
|
||||
import re
|
||||
|
||||
import six
|
||||
from django.template.response import TemplateResponse
|
||||
from django.http import HttpRequest, HttpResponse, HttpResponseNotAllowed
|
||||
from django.http.response import HttpResponseBadRequest
|
||||
|
@ -172,6 +174,7 @@ class GraphQLView(APIView):
|
|||
show_graphiql = self.graphiql and self.can_display_graphiql(request, data)
|
||||
if NO_HEADER_PY27_FLAG:
|
||||
print("no auth passed in graphiql header using py 2.7.x due to ReST")
|
||||
show_graphiql_headers = False
|
||||
else:
|
||||
show_graphiql_headers = (
|
||||
self.graphiql_headers and self.can_display_graphiql(request, data)
|
||||
|
|
Loading…
Reference in New Issue
Block a user