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 }}.") diff --git a/django/contrib/messages/tests/urls.py b/django/contrib/messages/tests/urls.py index 7557f9af4c..5191f34a56 100644 --- a/django/contrib/messages/tests/urls.py +++ b/django/contrib/messages/tests/urls.py @@ -5,6 +5,7 @@ from django.http import HttpResponseRedirect, HttpResponse from django.shortcuts import render_to_response, redirect from django.template import RequestContext, Template from django.template.response import TemplateResponse +from django.views.decorators.cache import never_cache TEMPLATE = """{% if messages %}