Update this command for Django 1.8
This commit is contained in:
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user