We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2d601c commit cc665dfCopy full SHA for cc665df
graphene_django/views.py
@@ -9,6 +9,7 @@
9
from django.http.response import HttpResponseBadRequest
10
from django.shortcuts import render
11
from django.utils.decorators import classonlymethod, method_decorator
12
+from django.utils.functional import classproperty
13
from django.views.decorators.csrf import ensure_csrf_cookie
14
from django.views.generic import View
15
from graphql import (
@@ -497,6 +498,10 @@ def as_view(cls, **initkwargs):
497
498
view._is_coroutine = coroutines._is_coroutine
499
return view
500
501
+ @classproperty
502
+ def view_is_async(cls):
503
+ return True
504
+
505
async def dispatch(self, request, *args, **kwargs):
506
try:
507
if request.method.lower() not in ("get", "post"):
0 commit comments