brotherton-erpnext/erpnext/www/lms/program.py
scmmishra 3757a4eab8 Modified program and index view
Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
2019-02-19 13:06:28 +05:30

8 lines
282 B
Python

from __future__ import unicode_literals
import erpnext.education.utils as utils
import frappe
def get_context(context):
context.program = frappe.get_doc("Program", frappe.form_dict["program"])
context.course_list = utils.get_courses_in_program(frappe.form_dict["program"])