Update this command for Django 1.8

This commit is contained in:
Ned Batchelder
2016-02-09 07:06:12 -05:00
parent 432a40f035
commit d8b9dec51e

View File

@@ -24,12 +24,17 @@ class Command(BaseCommand):
args = '<course_id course_id ...>'
help = 'Generates and stores course overview for one or more courses.'
option_list = BaseCommand.option_list + (
make_option('--all',
action='store_true',
default=False,
help='Generate course overview for all courses.'),
)
def add_arguments(self, parser):
"""
Add arguments to the command parser.
"""
parser.add_argument(
'--all',
action='store_true',
dest='all',
default=False,
help='Generate course overview for all courses.',
)
def handle(self, *args, **options):