Skip to content

Commit

Permalink
Fix for Django 1.6.11
Browse files Browse the repository at this point in the history
  • Loading branch information
robromano committed Nov 29, 2020
1 parent 908743e commit 8a11346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminrestrict/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8a11346

Please sign in to comment.