Skip to content

Commit 47abee5

Browse files
author
Ernesto Perez Amigo
committed
Fixed bug on create and update function on serializer mutation.
1 parent ecda90e commit 47abee5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

graphene_django_extras/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from .paginations import LimitOffsetGraphqlPagination, PageGraphqlPagination, CursorGraphqlPagination
88
from .types import DjangoObjectType, DjangoInputObjectType, DjangoListObjectType, DjangoSerializerType
99

10-
VERSION = (0, 1, 6, 'final', '')
10+
VERSION = (0, 1, 7, 'final', '')
1111

1212
__version__ = get_version(VERSION)
1313

graphene_django_extras/views.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
# -*- coding: utf-8 -*-
22
from django.views.decorators.csrf import csrf_exempt
33
from graphene_django.views import GraphQLView
4-
from graphql.execution.executor import execute, subscribe
4+
# from graphql.execution.executor import execute, subscribe
55
from rest_framework.decorators import (
66
authentication_classes, permission_classes, api_view, throttle_classes)
77
from rest_framework.permissions import IsAuthenticated
88
from rest_framework.request import Request
99
from rest_framework.settings import api_settings
1010
from rest_framework.views import APIView
11-
from graphql.utils.get_operation_ast import get_operation_ast
11+
# from graphql.utils.get_operation_ast import get_operation_ast
1212

1313
from .settings import graphql_api_settings
1414
from .utils import clean_dict
1515

1616

1717
class ExtraGraphQLView(GraphQLView, APIView):
18-
18+
"""
1919
def execute(self, *args, **kwargs):
2020
operation_ast = get_operation_ast(args[0])
2121
2222
if operation_ast and operation_ast.operation == 'subscription':
2323
return subscribe(self.schema, *args, **kwargs)
2424
2525
return execute(self.schema, *args, **kwargs)
26+
"""
2627

2728
@classmethod
2829
def as_view(cls, *args, **kwargs):

0 commit comments

Comments
 (0)