Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix graphiql explorer styles by sending missing param to render_graphiql #1460

Merged
merged 2 commits into from Sep 13, 2023

Conversation

mnasiri
Copy link
Contributor

@mnasiri mnasiri commented Sep 13, 2023

Resolves #1418
Fix graphiql explorer styles by sending graphiql_plugin_explorer_css_sri param to render_graphiql function of the GraphQlView

The problem:
The param graphiql_plugin_explorer_css_sri is used in graphene_django/templates/graphene/graphiql.html (this snippet) but doesn't set when send params to render graphiql here.

I had this problem locally.
so, I only add a line to the view.py

Thanks for your attempts.

…sri param to render_graphiql function of the GraphQlView (graphql-python#1418)
@mnasiri mnasiri changed the title Fix graphiql explorer styles by sending missing param to render_graphiql (#1418) Fix graphiql explorer styles by sending missing param to render_graphiql Sep 13, 2023
Copy link
Collaborator

@sjdemartini sjdemartini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@kiendang kiendang merged commit 83d3d27 into graphql-python:main Sep 13, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants