#15518: Separate CSRF checks to function
----------------------------+-----------------------------------------------
 Reporter:  vzima           |          Owner:  nobody    
   Status:  new             |      Milestone:            
Component:  Core framework  |        Version:  1.2       
 Keywords:                  |   Triage Stage:  Unreviewed
Has patch:  0               |  
----------------------------+-----------------------------------------------
 I have troubles with enabling CSRF check in some of my views because there
 is no function that would return True/False or raised an exception.

 My situation is like this:
 I have 2 views, one that is protected by CSRF and other one is not. Both
 views calls same rendering function which renders a form that leads to
 protected view.
 Problem is when first request ends at unprotected view, I have no
 CSRF_COOKIE in request.META and csrf_token template tag did not rendered
 one, so rendering returns a form that will always return CSRF reject page.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15518>
Django <http://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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to