mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-12 09:12:18 +03:00
Fix setting injection with suggestions from CR
Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
This commit is contained in:
parent
f9ff320f48
commit
eece5f9f83
|
@ -175,7 +175,7 @@
|
|||
onEditQuery: onEditQuery,
|
||||
onEditVariables: onEditVariables,
|
||||
onEditOperationName: onEditOperationName,
|
||||
headerEditorEnabled: GRAPHENE_SETTINGS.graphiqlHeaderEditorEnabled || true,
|
||||
headerEditorEnabled: GRAPHENE_SETTINGS.graphiqlHeaderEditorEnabled,
|
||||
query: parameters.query,
|
||||
};
|
||||
if (parameters.variables) {
|
||||
|
|
|
@ -45,9 +45,7 @@ add "&raw" to the end of the URL within a browser.
|
|||
{% if subscription_path %}
|
||||
subscriptionPath: "{{subscription_path}}",
|
||||
{% endif %}
|
||||
{% if header_editor_enabled %}
|
||||
graphiqlHeaderEditorEnabled: {{ graphiql_header_editor_enabled}},
|
||||
{% endif %}
|
||||
graphiqlHeaderEditorEnabled: {{ graphiql_header_editor_enabled|yesno:"true,false" }},
|
||||
};
|
||||
</script>
|
||||
<script src="{% static 'graphene_django/graphiql.js' %}"></script>
|
||||
|
|
Loading…
Reference in New Issue
Block a user