Collect Course Blocks on Course Publish and Management Command

MA-1368
This commit is contained in:
Nimisha Asthagiri
2016-01-15 12:44:12 -05:00
parent 66397c35b9
commit 05767b433d
15 changed files with 248 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ class Command(BaseCommand):
def handle(self, *args, **options):
if options['all']:
course_keys = [course.id for course in modulestore().get_courses()]
course_keys = [course.id for course in modulestore().get_course_summaries()]
else:
if len(args) < 1:
raise CommandError('At least one course or --all must be specified.')