Skip to content

Commit

Permalink
chore: remove unused import, add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ormsbee committed Feb 6, 2024
1 parent 9de189c commit 8b20491
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion openedx_learning/core/contents/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions openedx_learning/core/publishing/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8b20491

Please sign in to comment.