summaryrefslogtreecommitdiff
path: root/django/core/management/commands/sendtestemail.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-03-28 18:33:29 -0400
committerTim Graham <timograham@gmail.com>2016-04-08 09:51:06 -0400
commitdf8d8d4292684d6ffa7474f1e201aed486f02b53 (patch)
treec661bf9b33de5288afe4f63347a2a9c768ef98eb /django/core/management/commands/sendtestemail.py
parent2956e2f5e3f63d279f5dae2a995265364d3e6db1 (diff)
Fixed E128 flake8 warnings in django/.
Diffstat (limited to 'django/core/management/commands/sendtestemail.py')
-rw-r--r--django/core/management/commands/sendtestemail.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/django/core/management/commands/sendtestemail.py b/django/core/management/commands/sendtestemail.py
index 3e3b40a959..6ca011b544 100644
--- a/django/core/management/commands/sendtestemail.py
+++ b/django/core/management/commands/sendtestemail.py
@@ -10,12 +10,18 @@ class Command(BaseCommand):
missing_args_message = "You must specify some email recipients, or pass the --managers or --admin options."
def add_arguments(self, parser):
- parser.add_argument('email', nargs='*',
- help='One or more email addresses to send a test email to.')
- parser.add_argument('--managers', action='store_true', dest='managers', default=False,
- help='Send a test email to the addresses specified in settings.MANAGERS.')
- parser.add_argument('--admins', action='store_true', dest='admins', default=False,
- help='Send a test email to the addresses specified in settings.ADMINS.')
+ parser.add_argument(
+ 'email', nargs='*',
+ help='One or more email addresses to send a test email to.',
+ )
+ parser.add_argument(
+ '--managers', action='store_true', dest='managers', default=False,
+ help='Send a test email to the addresses specified in settings.MANAGERS.',
+ )
+ parser.add_argument(
+ '--admins', action='store_true', dest='admins', default=False,
+ help='Send a test email to the addresses specified in settings.ADMINS.',
+ )
def handle(self, *args, **kwargs):
subject = 'Test email from %s on %s' % (socket.gethostname(), timezone.now())