diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-02-15 15:42:05 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-02-15 20:48:48 +0100 |
| commit | e8950668ca4c3160cef3e1191a02ba1388a98cac (patch) | |
| tree | e081bce567a40c9bfe5d2c53ca08a4400b801dc7 /tests/generic_inline_admin | |
| parent | 69c662c9817f8c558d5e7a357221fdedb3bb7f59 (diff) | |
[1.8.x] Deprecated TEMPLATE_DEBUG setting.
Backport of 15b711b from master.
Diffstat (limited to 'tests/generic_inline_admin')
| -rw-r--r-- | tests/generic_inline_admin/tests.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/generic_inline_admin/tests.py b/tests/generic_inline_admin/tests.py index 58b1f930f1..4f94599f9d 100644 --- a/tests/generic_inline_admin/tests.py +++ b/tests/generic_inline_admin/tests.py @@ -19,11 +19,13 @@ from .admin import MediaInline, MediaPermanentInline, site as admin_site from .models import Category, Episode, EpisodePermanent, Media -# Set TEMPLATE_DEBUG to True to ensure {% include %} will raise exceptions. +# Set DEBUG to True to ensure {% include %} will raise exceptions. # That is how inlines are rendered and #9498 will bubble up if it is an issue. -@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',), - TEMPLATE_DEBUG=True, - ROOT_URLCONF="generic_inline_admin.urls") +@override_settings( + DEBUG=True, + PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',), + ROOT_URLCONF="generic_inline_admin.urls", +) class GenericAdminViewTest(TestCase): fixtures = ['users.xml'] |
