Skip to content

Commit 6c84eb7

Browse files
authored
Enrollment banner use the same name as dashboard (#2494)
1 parent 0e7d4d3 commit 6c84eb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

courses/views/v1/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def respond(data, status=True): # noqa: FBT002
293293
resp = respond(reverse("user-dashboard"))
294294
cookie_value = {
295295
"type": USER_MSG_TYPE_ENROLLED,
296-
"run": run.title,
296+
"run": run.course.title,
297297
}
298298

299299
# Check for an existing fulfilled order prior, otherwise get or create a PendingOrder.

courses/views/v1/views_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ def test_create_enrollments(mocker, user_client, api_request, product_exists):
612612
assert resp.cookies[USER_MSG_COOKIE_NAME].value == encode_json_cookie_value(
613613
{
614614
"type": USER_MSG_TYPE_ENROLLED,
615-
"run": run.title,
615+
"run": run.course.title,
616616
}
617617
)
618618
patched_create_enrollments.assert_called_once()

0 commit comments

Comments
 (0)