#31949: Allow builtin view decorators to be applied directly to async views.
--------------------------------+------------------------------------
Reporter: Michael Galler | Owner: nobody
Type: New feature | Status: new
Component: Core (Other) | Version: 3.1
Severity: Normal | Resolution:
Keywords: async | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+------------------------------------
Comment (by Andrew Godwin):
Yeah, while you can technically apply enough async/sync things to
decorators to make them work directly, only the style that adds attributes
to the wrapped function is actually going to work natively; we should at
least have the core Django ones detect what they're wrapping and do the
right thing, though due to Python this is impossible to do perfectly (but
we "can" make them perfectly raise nice errors if they're not wrapped
right)
--
Ticket URL: <https://code.djangoproject.com/ticket/31949#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.1ae133a23e080c534a64e28fc24c5a8e%40djangoproject.com.