blob: d8670e69776dcafd4acc3591dbc08d1d68882afa [file] [log] [blame]
Shivam Mishrad7e82982019-05-20 11:55:17 +05301from __future__ import unicode_literals
2import erpnext.education.utils as utils
3import frappe
4
5no_cache = 1
6
7def get_context(context):
8 context.education_settings = frappe.get_single("Education Settings")
9 course = frappe.get_doc('Course', frappe.form_dict['name'])
10 context.course = course
11 context.topics = course.get_topics()