diff --git a/openedx_learning/core/contents/models.py b/openedx_learning/core/contents/models.py index 8029d163..fd016b2c 100644 --- a/openedx_learning/core/contents/models.py +++ b/openedx_learning/core/contents/models.py @@ -7,7 +7,6 @@ from functools import cached_property -from django.conf import settings from django.core.exceptions import ValidationError from django.core.files.base import File from django.core.files.storage import default_storage, Storage diff --git a/openedx_learning/core/publishing/models.py b/openedx_learning/core/publishing/models.py index 9983ec02..43928d7c 100644 --- a/openedx_learning/core/publishing/models.py +++ b/openedx_learning/core/publishing/models.py @@ -39,6 +39,11 @@ class LearningPackage(models.Model): # type: ignore[django-manager-missing] uuid = immutable_uuid_field() key = key_field() title = case_insensitive_char_field(max_length=500, blank=False) + + # TODO: We should probably defer this field, since many things pull back + # LearningPackage as select_related. Usually those relations only care about + # the UUID and key, so maybe it makes sense to separate the model at some + # point. description = MultiCollationTextField( blank=True, null=False,