diff --git a/lms/patches/v1_0/publish_batches.py b/lms/patches/v1_0/publish_batches.py index 4ef5a8e2..7b16c4f1 100644 --- a/lms/patches/v1_0/publish_batches.py +++ b/lms/patches/v1_0/publish_batches.py @@ -2,6 +2,7 @@ import frappe def execute(): + frappe.reload_doc("lms", "doctype", "lms_batch") batches = frappe.get_all("LMS Batch", pluck="name") for batch in batches: diff --git a/lms/patches/v1_0/publish_certificates.py b/lms/patches/v1_0/publish_certificates.py index 71e5861f..608f0d54 100644 --- a/lms/patches/v1_0/publish_certificates.py +++ b/lms/patches/v1_0/publish_certificates.py @@ -2,6 +2,7 @@ import frappe def execute(): + frappe.reload_doc("lms", "doctype", "lms_certificate") certificates = frappe.get_all("LMS Certificate", pluck="name") for certificate in certificates: diff --git a/lms/www/certified_participants/certified_participants.html b/lms/www/certified_participants/certified_participants.html index 988c9fac..f4e49cb3 100644 --- a/lms/www/certified_participants/certified_participants.html +++ b/lms/www/certified_participants/certified_participants.html @@ -46,6 +46,7 @@ {{ course }} {% endfor %} + {% endfor %}