Updated flatpages tests to override CSRF_FAILURE_VIEW.

This commit is contained in:
Kirill Zaitsev 2012-11-28 20:48:04 +04:00 committed by Tim Graham
parent 8550df869b
commit dafec05548
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ from django.test.utils import override_settings
'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.messages.middleware.MessageMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
), ),
CSRF_FAILURE_VIEW='django.views.csrf.csrf_failure',
TEMPLATE_DIRS=( TEMPLATE_DIRS=(
os.path.join(os.path.dirname(__file__), 'templates'), os.path.join(os.path.dirname(__file__), 'templates'),
), ),