From d867f86c083d9e57063fffef6d37d6d921ca23fc Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 7 Apr 2022 22:46:40 +0530 Subject: [PATCH] fix: replaced save with insert for certificate doctype rename patch --- lms/patches/v0_0/move_certification_to_certificate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/patches/v0_0/move_certification_to_certificate.py b/lms/patches/v0_0/move_certification_to_certificate.py index 6004a3cb..1005ace5 100644 --- a/lms/patches/v0_0/move_certification_to_certificate.py +++ b/lms/patches/v0_0/move_certification_to_certificate.py @@ -11,4 +11,4 @@ def execute(): "member": data.student, "issue_date": data.issue_date, "expiry_date": data.expiry_date - }).save(ignore_permissions=True, ignore_mandatory=True) + }).insert(ignore_permissions=True, ignore_mandatory=True)