Commit c8129638 by Matt Drayer

Merge pull request #9584 from edx/mattdrayer/cert-webview-add-org-fields

mattdrayer/cert-webview-add-org-fields: Added new fields to context
parents 4e5dc9f3 f74c9b6d
......@@ -93,8 +93,10 @@ def _update_certificate_context(context, course, user, user_certificate):
if organizations:
#TODO Need to add support for multiple organizations, Currently we are interested in the first one.
organization = organizations[0]
partner_long_name = organization.get('name', None)
partner_short_name = organization.get('short_name', course.org)
partner_long_name = organization.get('name', partner_long_name)
partner_short_name = organization.get('short_name', partner_short_name)
context['organization_long_name'] = partner_long_name
context['organization_short_name'] = partner_short_name
context['organization_logo'] = organization.get('logo', None)
context['username'] = user.username
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment