feat: display corporate catalog name on generated certificates#84
feat: display corporate catalog name on generated certificates#84bra-i-am wants to merge 3 commits into
Conversation
| has_verified_enrollment = CourseEnrollment.objects.filter( | ||
| user=user, | ||
| course_id=course_key, | ||
| mode="verified", |
There was a problem hiding this comment.
My only comment here is: certificates are delivered in verified and honor mode. It worth to validate this assumption.
| course_key = CourseKey.from_string(course_id) | ||
|
|
||
| # Ensure user has a PAID enrollment (not audit/honor) | ||
| OPEN_ENROLLMENT_MODES = frozenset({"audit", "honor"}) |
There was a problem hiding this comment.
it should be honor, verified, isn't it? audit is not paid
|
@dcoa and @bra-i-am on NAU we haven't been using that certificate template. We are using the DB loaded template. Nevertheless we still need to know how to show that information on those templates. Entering to specific code. |
This PR updates the certificate template to display the corporate catalog name associated with the completed course.
It retrieves the learner’s verified enrollment and related catalog information, and conditionally renders the corporate catalog name on the generated certificate when available.
Caution
The catalog information is only added if the user has a seat assigned in a catalog for the course
Screenshot