Re: [Django] #35133: Make @method_decorator to work with async methods. (was: never_cache decorator problem with async get function inside classbased View)

5 views
Skip to first unread message

Django

unread,
Jan 22, 2024, 12:09:13 AM1/22/24
to django-...@googlegroups.com
#35133: Make @method_decorator to work with async methods.
-------------------------------------+-------------------------------------
Reporter: unnamedtrue | Owner: nobody
Type: New feature | Status: new
Component: Utilities | Version: 5.0
Severity: Normal | Resolution:
Keywords: never_cache, | Triage Stage:
decorator, async, classnased | Unreviewed
view, dispatch, coroutine |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* cc: Ben Lomax (added)
* type: Bug => New feature
* component: Core (Cache system) => Utilities


Comment:

As far as I'm aware, `@method_decorator` doesn't support decorating async
methods. Tentatively accepted as a new feature.

--
Ticket URL: <https://code.djangoproject.com/ticket/35133#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages