summaryrefslogtreecommitdiff
path: root/tests/admin_docs
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-01-31 11:59:27 +0100
committerClaude Paroz <claude@2xlibre.net>2014-02-04 20:02:28 +0100
commit5848bea9dc9458a9517d4c98993d742976771342 (patch)
treecf4e522dd07e3daa8422aaa766e5d3b6c5424903 /tests/admin_docs
parent35cecb1ebd0ccda0be7a518d1b7273333d26fbae (diff)
downloaddjango-5848bea9dc9458a9517d4c98993d742976771342.tar.gz
Made staff_member_required redirect to login
Refs #21911.
Diffstat (limited to 'tests/admin_docs')
-rw-r--r--tests/admin_docs/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_docs/tests.py b/tests/admin_docs/tests.py
index d2f8386bdb..e3f1460f4b 100644
--- a/tests/admin_docs/tests.py
+++ b/tests/admin_docs/tests.py
@@ -38,7 +38,7 @@ class AdminDocViewTests(TestCase):
def test_index(self):
self.client.logout()
- response = self.client.get(reverse('django-admindocs-docroot'))
+ response = self.client.get(reverse('django-admindocs-docroot'), follow=True)
# Should display the login screen
self.assertContains(response,
'<input type="hidden" name="next" value="/admindocs/" />', html=True)