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()