mirror of
https://github.com/django/django.git
synced 2025-11-26 21:51:57 +00:00
Fixed #36138 -- Changed ADMINS and MANAGERS settings to lists of strings.
Previously, the ADMINS and MANAGERS settings were lists of (name, address) tuples (where the name had been unused). Deprecated use of tuples. Updated settings value sanity checks, and changed from ValueError to ImproperlyConfigured.
This commit is contained in:
parent
aed303aff5
commit
e295033144
10 changed files with 102 additions and 52 deletions
|
|
@ -389,7 +389,7 @@ class CommonMiddlewareTest(SimpleTestCase):
|
|||
|
||||
@override_settings(
|
||||
IGNORABLE_404_URLS=[re.compile(r"foo")],
|
||||
MANAGERS=[("PHD", "PHB@dilbert.com")],
|
||||
MANAGERS=["manager@example.com"],
|
||||
)
|
||||
class BrokenLinkEmailsMiddlewareTest(SimpleTestCase):
|
||||
rf = RequestFactory()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue