Minor edit of initialisation logic.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
7a84ad93e6
commit
bc6535b599
|
@ -72,7 +72,7 @@ class SMTPConnection(object):
|
|||
def __init__(self, host=None, port=None, username=None, password=None,
|
||||
use_tls=None, fail_silently=False):
|
||||
self.host = host or settings.EMAIL_HOST
|
||||
self.port = (port is not None) and port or settings.EMAIL_PORT
|
||||
self.port = port or settings.EMAIL_PORT
|
||||
self.username = username or settings.EMAIL_HOST_USER
|
||||
self.password = password or settings.EMAIL_HOST_PASSWORD
|
||||
self.use_tls = (use_tls is not None) and use_tls or settings.EMAIL_USE_TLS
|
||||
|
|
Loading…
Reference in New Issue