fix: messages and url

This commit is contained in:
pateljannat
2021-05-31 13:39:31 +05:30
parent a8752afb3b
commit bb0aa09b4e
4 changed files with 21 additions and 14 deletions

View File

@@ -0,0 +1,8 @@
import frappe
def get_context(context):
context.no_cache = 1
batch_name = frappe.form_dict["batch"]
context.batch = frappe.get_doc("LMS Batch", batch_name)
context.already_a_member = context.batch.is_member(frappe.session.user)
context.batch.course_title = frappe.db.get_value("LMS Course", context.batch.course, "title")