From d33d9a66c8a847787277f1e85e69ff05d0d96053 Mon Sep 17 00:00:00 2001 From: oliviaruizknott Date: Wed, 3 Feb 2021 16:52:34 -0500 Subject: [PATCH] docs: clarify comment --- lms/djangoapps/certificates/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/certificates/models.py b/lms/djangoapps/certificates/models.py index c757d209b5..66e9009ce6 100644 --- a/lms/djangoapps/certificates/models.py +++ b/lms/djangoapps/certificates/models.py @@ -514,8 +514,9 @@ class CertificateInvalidation(TimeStampedModel): notes = models.TextField(default=None, null=True) active = models.BooleanField(default=True) - # This is necessary because CMS does not install the certificates app, but it - # imports this models code. Simple History will attempt to connect to the installed + # This is necessary because CMS does not install the certificates app, but + # this code is run when other models in this file are imported there (or in + # common code). Simple History will attempt to connect to the installed # model in the certificates app, which will fail. if 'certificates' in apps.app_configs: history = HistoricalRecords()