This repository was archived by the owner on Sep 17, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ You can use this management command to send email if you do not
88setup a cron job or use celery. You can specify a limit on the
99amount of emails you want to attempt to send at one time.::
1010
11- python manage.py send_queued_messages --limit= 20
11+ python manage.py send_queued_messages 20
1212
1313
1414Clear Sent messages
Original file line number Diff line number Diff line change 4848# built documents.
4949#
5050# The short X.Y version.
51- version = '3.0.0 '
51+ version = '3.0.1 '
5252# The full version, including alpha/beta/rc tags.
53- release = '3.0.0 '
53+ release = '3.0.1 '
5454
5555# The language for content autogenerated by Sphinx. Refer to documentation
5656# for a list of supported languages.
Original file line number Diff line number Diff line change 1- VERSION = '3.0.0 '
1+ VERSION = '3.0.1 '
22
33default_app_config = 'mailqueue.apps.MailQueueConfig'
Original file line number Diff line number Diff line change @@ -8,14 +8,7 @@ class Command(BaseCommand):
88
99 def add_arguments (self , parser ):
1010 # Positional arguments
11- parser .add_argument ('limit' , nargs = '+' , type = int )
12-
13- # Named (optional) arguments
14- parser .add_argument ('--limit' ,
15- action = 'store_true' ,
16- dest = 'limit' ,
17- default = False ,
18- help = 'Limit the number of emails to process' )
11+ parser .add_argument ('limit' , nargs = '?' , type = int )
1912
2013 def handle (self , * args , ** options ):
2114 MailerMessage .objects .send_queued (limit = options ['limit' ])
You can’t perform that action at this time.
0 commit comments