graphene-django/graphene_django
Kuba Misiorny 30fa86084e
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
2021-02-03 12:20:49 +01:00
..
debug Merge branch 'master' into v3 2020-06-27 11:14:09 +01:00
filter Support "contains" and "overlap" filtering (v3) (#1101) 2021-01-18 21:39:22 -08:00
forms WIP: Merge master into v3 (#1086) 2020-12-30 15:37:57 -08:00
management WIP: Merge master into v3 (#1086) 2020-12-30 15:37:57 -08:00
rest_framework WIP: Merge master into v3 (#1086) 2020-12-30 15:37:57 -08:00
static/graphene_django Add headers support to GraphiQL (#1016) 2020-08-07 10:13:26 +01:00
templates/graphene Add headers support to GraphiQL (#1016) 2020-08-07 10:13:26 +01:00
tests Add BlankField and mount enums using it v3 (#1096) 2021-01-11 16:34:50 -08:00
utils Fix backward compability on GraphQLTestCase._client setter (#1094) 2021-01-09 19:14:54 -08:00
__init__.py WIP: Merge master into v3 (#1086) 2020-12-30 15:37:57 -08:00
compat.py Fix project setup (#1087) 2021-01-02 09:46:00 -08:00
conftest.py Make tests order independent (#932) 2020-04-20 13:23:20 +01:00
constants.py WIP: Merge master into v3 (#1086) 2020-12-30 15:37:57 -08:00
converter.py Add BlankField and mount enums using it v3 (#1096) 2021-01-11 16:34:50 -08:00
fields.py WIP: Merge master into v3 (#1086) 2020-12-30 15:37:57 -08:00
registry.py Reformatted files using black 2018-07-19 16:52:24 -07:00
settings.py WIP: Merge master into v3 (#1086) 2020-12-30 15:37:57 -08:00
types.py Merge branch 'master' into v3 2020-08-12 07:06:35 +01:00
views.py Add ability to pass execution_context_class to GraphQLView.as_view() 2021-02-03 12:20:49 +01:00