From 89bdb7974151307a90a57a593070ff37b00a8169 Mon Sep 17 00:00:00 2001 From: Arfey Date: Thu, 20 Apr 2023 02:07:58 +0300 Subject: [PATCH] fix: use execution_context_class attribute for GraphQLView --- graphene_django/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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