mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-04 20:33:12 +03:00
Keep 'if' above same as before, fix lint issue
This commit is contained in:
parent
ad447d94a2
commit
0e1b6051ff
|
@ -101,10 +101,10 @@ class GraphQLView(View):
|
|||
subscription_path=None,
|
||||
execution_context_class=None,
|
||||
):
|
||||
if schema is None:
|
||||
if not schema:
|
||||
schema = graphene_settings.SCHEMA
|
||||
self.schema = schema or self.schema
|
||||
|
||||
|
||||
if middleware is None:
|
||||
middleware = graphene_settings.MIDDLEWARE
|
||||
if isinstance(middleware, MiddlewareManager):
|
||||
|
|
Loading…
Reference in New Issue
Block a user