diff --git a/lms/patches.txt b/lms/patches.txt index a2c0dcba3..3b2e34a98 100644 --- a/lms/patches.txt +++ b/lms/patches.txt @@ -75,4 +75,4 @@ lms.patches.v1_0.create_student_role lms.patches.v1_0.mark_confirmation_for_batch_students lms.patches.v1_0.create_quiz_questions lms.patches.v1_0.add_default_marks #16-10-2023 -lms.patches.v1_0.add_certificate_template #25-10-2023 \ No newline at end of file +lms.patches.v1_0.add_certificate_template #26-10-2023 \ No newline at end of file diff --git a/lms/patches/v1_0/add_certificate_template.py b/lms/patches/v1_0/add_certificate_template.py index a38b44665..b1eb7498b 100644 --- a/lms/patches/v1_0/add_certificate_template.py +++ b/lms/patches/v1_0/add_certificate_template.py @@ -2,6 +2,7 @@ def execute(): + frappe.reload_doc("lms", "doctype", "lms_certificate") default_certificate_template = frappe.db.get_value( "Property Setter", {