brotherton-erpnext/erpnext/www/lms/course.py
2019-05-20 11:55:32 +05:30

11 lines
328 B
Python

from __future__ import unicode_literals
import erpnext.education.utils as utils
import frappe
no_cache = 1
def get_context(context):
context.education_settings = frappe.get_single("Education Settings")
course = frappe.get_doc('Course', frappe.form_dict['name'])
context.course = course
context.topics = course.get_topics()