Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to pass
execution_context_class
to GraphQLView.as_view()
Currently when passing `execution_context_class` like this: ``` GraphQLView.as_view(execution_context_class=CustomContext) ``` you get the following error from `View.as_view()` ``` TypeError: GraphQLView() received an invalid keyword 'execution_context_class'. as_view only accepts arguments that are already attributes of the class. ``` this PR fixes the `hasattr` check in `.as_view`. Fixes: graphql-python#1072
- Loading branch information