1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #35364 -- Stopped AdminEmailHandler rendering email unnecessarily.

This commit is contained in:
Adam Johnson
2024-04-09 16:01:37 +01:00
committed by Sarah Boyce
parent b0f2289426
commit 50a702f3fd
3 changed files with 15 additions and 2 deletions

View File

@@ -123,7 +123,7 @@ class DefaultsTests(TestCase):
)
def test_custom_bad_request_template(self):
response = self.client.get("/raises400/")
self.assertIs(response.wsgi_request, response.context[-1].request)
self.assertIs(response.wsgi_request, response.context.request)
@override_settings(
TEMPLATES=[