diff options
| author | Rob Hudson | 2013-03-06 21:16:35 -0800 | 
|---|---|---|
| committer | Rob Hudson | 2013-03-06 21:16:35 -0800 | 
| commit | 6f79f0b0ada69e1d95d97066ba78e0d18aeab3ba (patch) | |
| tree | 71d64adfe6c24ab9cffa512f8c43eac4917cef73 /debug_toolbar/middleware.py | |
| parent | 6ad6d3ada35ea86722b0be6a60c03f542bc1d80c (diff) | |
| parent | 46f5ef3d53fd7196855f3810a260373c59acc54a (diff) | |
| download | django-debug-toolbar-6f79f0b0ada69e1d95d97066ba78e0d18aeab3ba.tar.bz2 | |
Merge pull request #289 from fusionbox/master
Do not intercept redirects for ajax requests
Diffstat (limited to 'debug_toolbar/middleware.py')
| -rw-r--r-- | debug_toolbar/middleware.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/debug_toolbar/middleware.py b/debug_toolbar/middleware.py index 1979e1d..2c36a19 100644 --- a/debug_toolbar/middleware.py +++ b/debug_toolbar/middleware.py @@ -119,7 +119,7 @@ class DebugToolbarMiddleware(object):          if not toolbar or request.is_ajax():              return response          if isinstance(response, HttpResponseRedirect): -            if not toolbar.config['INTERCEPT_REDIRECTS']: +            if not toolbar.config['INTERCEPT_REDIRECTS'] or request.is_ajax():                  return response              redirect_to = response.get('Location', None)              if redirect_to: | 
