#21564: Generic base view http_method_not_allowed method references self.request
and should use locally scoped request
-------------------------------+------------------------------------
     Reporter:  adepue         |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Generic views  |                  Version:  1.6
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  1
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------
Changes (by bmispelon):

 * needs_better_patch:  0 => 1
 * stage:  Ready for checkin => Accepted


Comment:

 There's another instance of a similar behavior in `RedirectView.get`:
 https://github.com/django/django/blob/master/django/views/generic/base.py#L199

 Would you mind fixing that one too and adding a test for it?

 Thanks.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21564#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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.1c92a0e6b0c2e4b05b0d08f791e6bd1c%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to