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:
committed by
Sarah Boyce
parent
b0f2289426
commit
50a702f3fd
@@ -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=[
|
||||
|
||||
Reference in New Issue
Block a user