#34062: object HttpResponseNotAllowed can't be used in 'await' expression -------------------------------------+------------------------------------- Reporter: Antoine Lorence | Owner: Antoine | Lorence Type: Bug | Status: closed Component: Generic views | Version: 4.1 Severity: Release blocker | Resolution: fixed Keywords: async | Triage Stage: Ready for | checkin Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Carlton Gibson <carlton@…>):
* status: assigned => closed * resolution: => fixed Comment: In [changeset:"9b0c9821ed4dd9920cc7c5e7b657720d91a89bdc" 9b0c9821]: {{{ #!CommitTicketReference repository="" revision="9b0c9821ed4dd9920cc7c5e7b657720d91a89bdc" Fixed #34062 -- Updated View.http_method_not_allowed() to support async. As with the options() methods, wrap the response in a coroutine if the view is async. Co-authored-by: Carlton Gibson <carlton.gib...@noumenal.es> }}} -- Ticket URL: <https://code.djangoproject.com/ticket/34062#comment:12> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018389a6c456-154737c8-2282-46f1-895a-ef4c8f1cf22d-000000%40eu-central-1.amazonses.com.