brotherton-erpnext/erpnext/www/lms/course.py
scmmishra 6660a675f1 templates: add templates for LMS content
Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
2019-02-19 13:05:23 +05:30

8 lines
286 B
Python

from __future__ import unicode_literals
import frappe
def get_context(context):
context.current_course = frappe.get_doc("Course", frappe.form_dict["course"])
context.current_content = frappe.get_doc("Content", frappe.form_dict["content"])
next_content = get_next_content()