graphql-python / graphene-django

Build powerful, efficient, and flexible GraphQL APIs with seamless Django integration.
http://docs.graphene-python.org/projects/django/en/latest/
MIT License
4.31k stars 770 forks source link

fix: use execution_context_class attribute for GraphQLView #1398

Closed Arfey closed 1 year ago

Arfey commented 1 year ago

Simple change for using execution_context_class as class attribute

class MyGraphQLView(GraphQLView):
    execution_context_class = CustomExecutionContext
firaskafri commented 1 year ago

@Arfey great PR! Seems we have some testing errors?