From 3602540bb3480157bb335546d0dc041c79c82f73 Mon Sep 17 00:00:00 2001 From: Arslan Ashraf Date: Wed, 29 Oct 2025 14:13:44 +0500 Subject: [PATCH] fix: validation API for certificates --- cms/djangoapps/contentstore/views/certificate_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/views/certificate_manager.py b/cms/djangoapps/contentstore/views/certificate_manager.py index 429950477f..081afdcc0d 100644 --- a/cms/djangoapps/contentstore/views/certificate_manager.py +++ b/cms/djangoapps/contentstore/views/certificate_manager.py @@ -121,7 +121,7 @@ class CertificateManager: along with the certificates. """ is_active = False - certificates = None + certificates = [] if settings.FEATURES.get('CERTIFICATES_HTML_VIEW', False): certificates = CertificateManager.get_certificates(course) # we are assuming only one certificate in certificates collection.