summaryrefslogtreecommitdiff
path: root/tests/user_commands
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-04-01 17:03:56 -0700
committerTim Graham <timograham@gmail.com>2017-04-01 20:03:56 -0400
commit7bbb5161eaad6771676281c5c544030cf9ff1312 (patch)
tree1c24314c1af0cc0c2503909f78e5beaa363921c4 /tests/user_commands
parent1aa8e8605cca95b31eaf6f5e47bc0742d6f2e0c7 (diff)
downloaddjango-7bbb5161eaad6771676281c5c544030cf9ff1312.tar.gz
Removed implicit default store_true/false argparse args.
argparse automatically sets the default value for store_true/false arguments to its opposite.
Diffstat (limited to 'tests/user_commands')
-rw-r--r--tests/user_commands/management/commands/hal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/user_commands/management/commands/hal.py b/tests/user_commands/management/commands/hal.py
index 055f441ab4..06388ab2c9 100644
--- a/tests/user_commands/management/commands/hal.py
+++ b/tests/user_commands/management/commands/hal.py
@@ -6,7 +6,7 @@ class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument('args', metavar='app_label', nargs='*', help='Specify the app label(s) to works on.')
- parser.add_argument('--empty', action='store_true', dest='empty', default=False, help="Do nothing.")
+ parser.add_argument('--empty', action='store_true', dest='empty', help="Do nothing.")
def handle(self, *app_labels, **options):
app_labels = set(app_labels)