diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2011-03-17 08:07:40 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2011-03-17 08:07:40 +0000 |
| commit | b49ee91eb39e6008fed9d77c19b84362d3dd2b16 (patch) | |
| tree | ba0872ee328f9fa309cfbcbb292a397bfae4416d /django/contrib/auth | |
| parent | 1af33427cb4d6e4ec12c61b68d9da738754b429d (diff) | |
Fixed #15142 -- Force test views to be non-cached so that projects with caching middleware enabled don't cause test failures. Thanks to jsdalton for the report and patch
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15865 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib/auth')
| -rw-r--r-- | django/contrib/auth/tests/urls.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/contrib/auth/tests/urls.py b/django/contrib/auth/tests/urls.py index 51b7d92d27..3d76a4e443 100644 --- a/django/contrib/auth/tests/urls.py +++ b/django/contrib/auth/tests/urls.py @@ -4,7 +4,9 @@ from django.contrib.auth.views import password_reset from django.contrib.auth.decorators import login_required from django.http import HttpResponse from django.template import Template, RequestContext +from django.views.decorators.cache import never_cache +@never_cache def remote_user_auth_view(request): "Dummy view for remote user tests" t = Template("Username is {{ user }}.") |
