Ticket #8127: csrf_middleware_ajax.diff
File csrf_middleware_ajax.diff, 528 bytes (added by , 16 years ago) |
---|
-
django-trunk/django/contrib/csrf/middleware.py
43 43 44 44 def process_request(self, request): 45 45 if request.method == 'POST': 46 if request.is_ajax(): 47 return None 46 48 try: 47 49 session_id = request.COOKIES[settings.SESSION_COOKIE_NAME] 48 50 except KeyError: