diff --git a/graphene_django/views.py b/graphene_django/views.py index b29aeed..d487f96 100644 --- a/graphene_django/views.py +++ b/graphene_django/views.py @@ -112,7 +112,7 @@ class GraphQLView(View): self.pretty = self.pretty or pretty self.graphiql = self.graphiql or graphiql self.batch = self.batch or batch - self.execution_context_class = execution_context_class + self.execution_context_class = execution_context_class or self.execution_context_class if subscription_path is None: self.subscription_path = graphene_settings.SUBSCRIPTION_PATH