mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Changed RedirectView.permanent to False per deprecation timeline; refs #21587.
This commit is contained in:
parent
bd98926f0e
commit
6e13c0490d
8 changed files with 69 additions and 159 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue