brotherton-erpnext/erpnext/www/lms/program.py

11 lines
303 B
Python
Raw Normal View History

from __future__ import unicode_literals
import erpnext.education.utils as utils
import frappe
def get_context(context):
2018-10-18 10:14:08 +00:00
program = frappe.get_doc("Program", frappe.form_dict["program"])
course_list = program.get_course_list()
context.program = program
context.course_list = course_list