summaryrefslogtreecommitdiff
path: root/tests/generic_inline_admin
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-12-06 20:40:55 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-12-06 20:40:55 +0100
commit1917017b8d38a9c330456cbdf2e81b0dc49e6477 (patch)
treef9ca3c0ae87e26eef21cb85063ded21165e8fc5a /tests/generic_inline_admin
parent4832320e8d5038d0454cc3e1dd1dc177d0419fa9 (diff)
Moved misplaced comment.
Diffstat (limited to 'tests/generic_inline_admin')
-rw-r--r--tests/generic_inline_admin/tests.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/generic_inline_admin/tests.py b/tests/generic_inline_admin/tests.py
index bd80ec3460..0d69757cd2 100644
--- a/tests/generic_inline_admin/tests.py
+++ b/tests/generic_inline_admin/tests.py
@@ -17,6 +17,8 @@ from .admin import MediaInline, MediaPermanentInline, site as admin_site
from .models import Episode, Media, EpisodePermanent, Category
+# Set TEMPLATE_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")
@@ -24,10 +26,6 @@ class GenericAdminViewTest(TestCase):
fixtures = ['users.xml']
def setUp(self):
- # set TEMPLATE_DEBUG to True to ensure {% include %} will raise
- # exceptions since that is how inlines are rendered and #9498 will
- # bubble up if it is an issue.
-
self.client.login(username='super', password='secret')
# Can't load content via a fixture (since the GenericForeignKey