refactor: renamed batch and membership doctypes

This commit is contained in:
Jannat Patel
2023-08-25 14:46:11 +05:30
parent b197e36ba7
commit b8b32681bf
45 changed files with 246 additions and 275 deletions

View File

@@ -4,7 +4,7 @@ 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.batch = frappe.get_doc("LMS Batch Old", 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"