From 8a11346d1e4b12df883a5a4bdab0ad29b20d48d0 Mon Sep 17 00:00:00 2001 From: Robert Romano Date: Sun, 29 Nov 2020 15:02:03 -0800 Subject: [PATCH] Fix for Django 1.6.11 --- adminrestrict/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminrestrict/tests.py b/adminrestrict/tests.py index 47eb99f..db8d274 100755 --- a/adminrestrict/tests.py +++ b/adminrestrict/tests.py @@ -43,7 +43,7 @@ def test_get_redirected(self): admin_url = reverse('admin:index') a = AllowedIP.objects.create(ip_address="10.10.0.1") resp = self.client.get(admin_url) - if DJANGO_VERSION < (1, 6, 0): + if DJANGO_VERSION < (1, 7, 0): self.assertEqual(resp.status_code, 200) else: self.assertEqual(resp.status_code, 302)