1
0
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:
Hannes Struss
2012-11-19 18:57:40 +01:00
parent 1f1f60d12f
commit f9891f2087
5 changed files with 69 additions and 3 deletions

View File

@@ -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