#34830: csrf_failure view missing context processors
-----------------------------+------------------------------------
     Reporter:  Alex Henman  |                    Owner:  nobody
         Type:  Bug          |                   Status:  new
    Component:  CSRF         |                  Version:  dev
     Severity:  Normal       |               Resolution:
     Keywords:               |             Triage Stage:  Accepted
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+------------------------------------

Comment (by Natalia Bidart):

 Replying to [comment:6 Alex Henman]:
 >
 > So I thought the fix was to explicitly pass the `request` rather than
 add it to the context dict

 My advice would be to try your patch and run the tests :-) (this is what I
 did when reproducing/accepting the ticket). Spoiler alert, some tests fail
 with:

 {{{
 TypeError: Template.render() got an unexpected keyword argument 'request'
 }}}

 This is why the `Template` class that is being used is the one defined in
 `django/template/base.py` which `render` method is defined as `def
 render(self, context)`. I hope this helps!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34830#comment:7>
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/0107018adbf661f5-4f510b35-bf04-436d-935a-d927b7c4b657-000000%40eu-central-1.amazonses.com.

Reply via email to