mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-25 11:04:11 +03:00
3cf940d0c8
* 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: #1072 * make black happy removed whitespace |
||
---|---|---|
.. | ||
debug | ||
filter | ||
forms | ||
management | ||
rest_framework | ||
static/graphene_django | ||
templates/graphene | ||
tests | ||
utils | ||
__init__.py | ||
compat.py | ||
conftest.py | ||
constants.py | ||
converter.py | ||
fields.py | ||
registry.py | ||
settings.py | ||
types.py | ||
views.py |