diff --git a/media/tests/test_templates.py b/media/tests/test_templates.py index e4ce582..b9d2e75 100644 --- a/media/tests/test_templates.py +++ b/media/tests/test_templates.py @@ -54,7 +54,7 @@ class TemplateTests(TestCase): 'admin:media_media_change', args=[self.dummy_media1.id], ), data=data) - self.assertEqual(response.status_code, 200) + self.assertEqual(response.status_code, 302) def test_media_emprunt_changelist(self): response = self.client.get(reverse('admin:media_emprunt_changelist'))