#31949: Allow builtin view decorators to be applied directly to async views.
--------------------------------+-------------------------------------
Reporter: Michael Galler | Owner: Ben Lomax
Type: New feature | Status: assigned
Component: Core (Other) | Version: 3.1
Severity: Normal | Resolution:
Keywords: async | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------+-------------------------------------
Comment (by Ben Lomax):
As an update, I've got 3 PRs to contribute to this issue in various
states:
1. [https://github.com/django/django/pull/16800 Made
@xframe_options_(deny/sameorigin/exempt) decorators to work with async
functions]
* Reviewed once, tests are failing, but I think it might be a test
runner failure rather than an actual test failure (`ERROR: Step ‘Publish
JUnit test result report’ failed: No test report files were found.
Configuration error?`) and I'm not sure how to re-run the tests.
2. [https://github.com/django/django/pull/16874 Made @no_append_slash work
with async functions]
* Passing all tests, needs a review
3. [https://github.com/django/django/pull/16876 Made @sensitive_variables
and @sensitive_post_parameters work with async functions]
* Legitimately failing tests, I need to come back to it, but wanted to
flag that I've started somewhere
There's going to be a little bit of conflicts with all of them due to the
docs being updated in the same place, but that should be easy enough to
fix once they start to get merged.
I also believe that the `http` decorators are also being worked on in
[https://github.com/django/django/pull/16752 this PR] by
[https://github.com/Th3nn3ss Th3nn3ss], so I'm leaving those alone for
now.
--
Ticket URL: <https://code.djangoproject.com/ticket/31949#comment:40>
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/0107018834c9ddad-bc978405-adb4-403c-a994-ac07d87c1b04-000000%40eu-central-1.amazonses.com.