Skip to content

Commit d7fd132

Browse files
docs: correct field name of "short_name"
1 parent 89bff77 commit d7fd132

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

openedx/core/djangoapps/content/course_overviews/migrations/0030_backfill_new_catalog_courseruns.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ def backfill_openedx_catalog(apps, schema_editor):
4242
"not the Organizations table, and auto-creating organizations is disabled. You can resolve this by "
4343
"creating the Organization manually (e.g. from the Django admin) or turning on auto-creation. "
4444
"You can set active=False to prevent this Organization from being used other than for historical data. "
45-
)
45+
) from exc
4646
if org_data["short_name"] != org_code:
47-
# On most installations, the 'short_code' database column is case insensitive (unfortunately)
47+
# On most installations, the 'short_name' database column is case insensitive (unfortunately)
4848
log.warning(
49-
'The course with ID "%s" does not match its Organization.short_code "%s"',
49+
'The course with ID "%s" does not match its Organization.short_name "%s"',
5050
course_run.course_id,
5151
org_data["short_name"],
5252
)

0 commit comments

Comments
 (0)