Skip to content
Browse files

Minor edit of initialisation logic.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 7a84ad9 commit bc6535b5998900191ca8cc8f9755631c4cf1b7f7 @malcolmt malcolmt committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/
2 django/core/
@@ -72,7 +72,7 @@ class SMTPConnection(object):
def __init__(self, host=None, port=None, username=None, password=None,
use_tls=None, fail_silently=False): = 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

0 comments on commit bc6535b

Please sign in to comment.
Something went wrong with that request. Please try again.