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:
Malcolm Tredinnick 2007-05-03 13:53:42 +00:00
parent 7a84ad93e6
commit bc6535b599
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class SMTPConnection(object):
def __init__(self, host=None, port=None, username=None, password=None, def __init__(self, host=None, port=None, username=None, password=None,
use_tls=None, fail_silently=False): use_tls=None, fail_silently=False):
self.host = host or settings.EMAIL_HOST 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.username = username or settings.EMAIL_HOST_USER
self.password = password or settings.EMAIL_HOST_PASSWORD self.password = password or settings.EMAIL_HOST_PASSWORD
self.use_tls = (use_tls is not None) and use_tls or settings.EMAIL_USE_TLS self.use_tls = (use_tls is not None) and use_tls or settings.EMAIL_USE_TLS