mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #19325 - Made email backend of AdminEmailHandler configurable
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
import logging
|
||||
|
||||
from django.conf import settings
|
||||
from django.core.mail.backends.base import BaseEmailBackend
|
||||
|
||||
|
||||
class MyHandler(logging.Handler):
|
||||
def __init__(self):
|
||||
logging.Handler.__init__(self)
|
||||
self.config = settings.LOGGING
|
||||
|
||||
|
||||
class MyEmailBackend(BaseEmailBackend):
|
||||
def send_messages(self, email_messages):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user