Make code compatible with Python 2.7

This commit is contained in:
Ignacio Orlandini 2020-09-22 00:22:52 -03:00
parent 7bd29acde6
commit eeb714caad

View File

@ -328,8 +328,8 @@ class GraphQLView(View):
"operation_name": operation_name,
"context_value": self.get_context(request),
"middleware": self.get_middleware(request),
**extra_options,
}
options.update(extra_options)
if operation_type == "mutation" and (
graphene_settings.ATOMIC_MUTATIONS is True