Commit d8b9dec5 by Ned Batchelder

Update this command for Django 1.8

parent 432a40f0
...@@ -24,12 +24,17 @@ class Command(BaseCommand): ...@@ -24,12 +24,17 @@ class Command(BaseCommand):
args = '<course_id course_id ...>' args = '<course_id course_id ...>'
help = 'Generates and stores course overview for one or more courses.' help = 'Generates and stores course overview for one or more courses.'
option_list = BaseCommand.option_list + ( def add_arguments(self, parser):
make_option('--all', """
action='store_true', Add arguments to the command parser.
default=False, """
help='Generate course overview for all courses.'), parser.add_argument(
) '--all',
action='store_true',
dest='all',
default=False,
help='Generate course overview for all courses.',
)
def handle(self, *args, **options): def handle(self, *args, **options):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment