refactor: added enrolled status to program card

This commit is contained in:
Shivam Mishra
2019-05-30 17:19:11 +05:30
parent 4991fca5cc
commit 12579617f3
5 changed files with 8 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ def get_context(context):
frappe.local.flags.redirect_location = '/lms'
raise frappe.Redirect
context.content = frappe.get_doc(content_type, content).as_dict()
context.content = frappe.get_doc(content_type, content)
context.content_type = content_type
context.course = frappe.form_dict['course']