Shivam Mishra | d7e8298 | 2019-05-20 11:55:17 +0530 | [diff] [blame] | 1 | from __future__ import unicode_literals |
2 | import erpnext.education.utils as utils | ||||
3 | import frappe | ||||
4 | |||||
5 | no_cache = 1 | ||||
6 | |||||
7 | def 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() |