Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit c7c5a74

Browse files
committed
fixup! Manual changes for course key
Located with `grep -nrI DemoX | grep -x demo_course`
1 parent aaad57f commit c7c5a74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

programs/discovery.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Course, CourseRun, Organization, Program, ProgramType, SeatType
99
)
1010

11-
DEMO_IMAGE_URL = 'http://edx.devstack.lms:18000/asset-v1:edX+DemoX+Demo_Course+type@asset+block@images_course_image.jpg'
11+
DEMO_IMAGE_URL = 'http://edx.devstack.lms:18000/asset-v1:Axim+DemoX+demo_course+type@asset+block@images_course_image.jpg'
1212

1313

1414
# Make sure micromasters type exists
@@ -39,12 +39,12 @@
3939

4040
# Now, after an ID has been created, connect the program to other models
4141

42-
course = Course.objects.get(key='edX+DemoX')
42+
course = Course.objects.get(key='Axim+DemoX')
4343
program.courses.set([course])
4444

4545
try:
4646
# This run causes run-time exceptions, because it uses old style key.
47-
deprecated_run = CourseRun.objects.get(key='edX/DemoX/Demo_Course')
47+
deprecated_run = CourseRun.objects.get(key='Axim/DemoX/demo_course')
4848
program.excluded_course_runs = [deprecated_run]
4949
except CourseRun.DoesNotExist:
5050
# This key only seems to be in some existing devstacks, don't worry if it doesn't exist

0 commit comments

Comments
 (0)