#37065: @method_decorator can't be used on async view at class-level with
name="dispatch"
-----------------------------+--------------------------------------
     Reporter:  Jacob Walls  |                    Owner:  Vishy Algo
         Type:  Bug          |                   Status:  assigned
    Component:  Utilities    |                  Version:  5.2
     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 Vishy Algo):

 I completely agree, inspecting the return value and patching feels more
 like over-engineering than necessary.

 But would `async get dispatch` cause any issues, if handled incorrectly!
 Cause, when just overriding dispatch (without http methods) also seems to
 be a mistake.

 Probably `as_view` should also be overridden (again when all http methods
 are sync, **view_is_async** is False).
-- 
Ticket URL: <https://code.djangoproject.com/ticket/37065#comment:8>
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 visit 
https://groups.google.com/d/msgid/django-updates/0107019e2cd12aaa-d93987ae-20a8-4279-bc76-f00a85488678-000000%40eu-central-1.amazonses.com.

Reply via email to