From c3d436e23ea96d5b528c0a1189827999511cb677 Mon Sep 17 00:00:00 2001 From: Wes Okes Date: Mon, 18 Sep 2017 15:30:53 -0400 Subject: [PATCH] management command fix --- CONTRIBUTORS | 1 + .../management/commands/update_initial_data.py | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 1a84d72..d2eb029 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1,3 +1,4 @@ Josh Marlow @joshmarlow josh.marlow@ambition.com (primary) Wes Okes @wesokes wes.okes@gmail.com (primary) Wes Kendall @wesleykendall wes.kendall@ambition.com (secondary) +Cardinal-DeepSea-Blues (https://github.com/Cardinal-DeepSea-Blues) diff --git a/dynamic_initial_data/management/commands/update_initial_data.py b/dynamic_initial_data/management/commands/update_initial_data.py index a9f0b8c..289e329 100644 --- a/dynamic_initial_data/management/commands/update_initial_data.py +++ b/dynamic_initial_data/management/commands/update_initial_data.py @@ -6,15 +6,14 @@ class Command(BaseCommand): - option_list = BaseCommand.option_list + ( - make_option( + def add_arguments(self, parser): + parser.add_argument( '--verbose', action='store_true', dest='verbose', default=False, help='Determines if we should display which apps are being updated' - ), - make_option( + ) + parser.add_argument( '--app', dest='app', default=None, help='Updates a single app' ) - ) help = 'Call the InitialData.update_initial_data command for all apps. Use --app to update only one app.'