1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00

Fixed bug in mailbox_name argument and added unit tests

This is an optional positional argument, and thus needs to have nargs='?' set
This commit is contained in:
Thomas Chamberlin 2018-03-09 15:35:38 -05:00
parent 7b536046a9
commit e151006582
2 changed files with 55 additions and 0 deletions

View file

@ -21,6 +21,7 @@ class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument(
'mailbox_name',
nargs='?',
help="The name of the mailbox that will receive the message"
)