docs: clarify comment
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user