feat: added custom pages at subgroup level

This commit is contained in:
Anand Chitipothu
2021-12-09 01:17:03 +05:30
parent b83918c2aa
commit 943c8eabbf
5 changed files with 44 additions and 8 deletions

View File

@@ -27,5 +27,5 @@ def get_context(context):
# Function to render to custom page given the slug
context.render_page = lambda page: frappe.render_template(
cohort.get_page_template(page),
cohort.get_page_template(page, scope="Cohort"),
context)