From c7c5a74f4eebc2413999e6fa70ccadaa3742f628 Mon Sep 17 00:00:00 2001 From: Tim McCormack Date: Wed, 7 Feb 2024 18:12:09 +0000 Subject: [PATCH] fixup! Manual changes for course key Located with `grep -nrI DemoX | grep -x demo_course` --- programs/discovery.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/discovery.py b/programs/discovery.py index fe8a8c763bb..b49b51ffe86 100644 --- a/programs/discovery.py +++ b/programs/discovery.py @@ -8,7 +8,7 @@ Course, CourseRun, Organization, Program, ProgramType, SeatType ) -DEMO_IMAGE_URL = 'http://edx.devstack.lms:18000/asset-v1:edX+DemoX+Demo_Course+type@asset+block@images_course_image.jpg' +DEMO_IMAGE_URL = 'http://edx.devstack.lms:18000/asset-v1:Axim+DemoX+demo_course+type@asset+block@images_course_image.jpg' # Make sure micromasters type exists @@ -39,12 +39,12 @@ # Now, after an ID has been created, connect the program to other models -course = Course.objects.get(key='edX+DemoX') +course = Course.objects.get(key='Axim+DemoX') program.courses.set([course]) try: # This run causes run-time exceptions, because it uses old style key. - deprecated_run = CourseRun.objects.get(key='edX/DemoX/Demo_Course') + deprecated_run = CourseRun.objects.get(key='Axim/DemoX/demo_course') program.excluded_course_runs = [deprecated_run] except CourseRun.DoesNotExist: # This key only seems to be in some existing devstacks, don't worry if it doesn't exist