* cc: Carlton Gibson (added)
* type: Uncategorized => New feature
* component: Uncategorized => Utilities
* stage: Unreviewed => Accepted
Comment:
Hello Drew, thanks for your report!
From my understanding of the code, the decorators in
django.utils.decorators do not work with async functions (except for
`make_middleware_decorator`). I believe this ticket is similar to #31949,
#33882, and #35030. What's needed is to grow `method_decorator` so the
`decorator` param is tested for `iscoroutinefunction`.
Accepting on that premise as a new feature.
--
Ticket URL: <https://code.djangoproject.com/ticket/35083#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.