Skip to content
This repository was archived by the owner on Sep 17, 2019. It is now read-only.

Commit 315d5a6

Browse files
committed
Management command fix for issue #92
1 parent 6770e63 commit 315d5a6

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

docs/source/commands.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ You can use this management command to send email if you do not
88
setup a cron job or use celery. You can specify a limit on the
99
amount 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

1414
Clear Sent messages

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
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.

mailqueue/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
VERSION = '3.0.0'
1+
VERSION = '3.0.1'
22

33
default_app_config = 'mailqueue.apps.MailQueueConfig'

mailqueue/management/commands/send_queued_messages.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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'])

0 commit comments

Comments
 (0)