Changed RedirectView.permanent to False per deprecation timeline; refs #21587.

This commit is contained in:
Tim Graham 2015-01-18 16:43:57 -05:00
parent bd98926f0e
commit 6e13c0490d
8 changed files with 69 additions and 159 deletions

View file

@ -308,7 +308,7 @@ class ReverseLazyTest(TestCase):
def test_redirect_with_lazy_reverse(self):
response = self.client.get('/redirect/')
self.assertRedirects(response, "/redirected_to/", status_code=301)
self.assertRedirects(response, "/redirected_to/", status_code=302)
def test_user_permission_with_lazy_reverse(self):
User.objects.create_user('alfred', 'alfred@example.com', password='testpw')