Skip to content

Commit

Permalink
fix: [AXM-1299] always display course title for vc course cards
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrylo-kh committed Jan 3, 2025
1 parent aea8047 commit 492048b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion credentials/apps/verifiable_credentials/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from credentials.apps.credentials.api import get_user_credentials_by_content_type
from credentials.apps.credentials.data import UserCredentialStatus
from credentials.apps.catalog.models import CourseRun


def get_user_credentials_data(username, model):
Expand Down Expand Up @@ -39,8 +40,9 @@ def get_user_credentials_data(username, model):
credential.credential.program.authoring_organizations.values_list("name", flat=True)
)
elif model == "coursecertificate":
course_run = CourseRun.objects.filter(key=credential.credential.course_id).first()
credential_uuid = credential.credential.course_id
credential_title = credential.credential.title
credential_title = course_run.course.title
credential_org = credential.credential.course_key.org

data.append({
Expand Down

0 comments on commit 492048b

Please sign in to comment.