Files
edx-platform/lms/djangoapps/course_home_api/models.py
Brian Mesick e478975105 chore: Add missing PII annotations, update safelist
PII Annotations are very out of date, this commit adds most that were
missing in edx-platform, and some additional annotations to the
safelist. It is not comprehensive, several other upstream Open edX
packages also need to be updated. It also does not include removing
annotations that have been moved upstream, or been removed entirely.
Those are separate follow-on tasks.
2024-11-05 12:58:36 -05:00

28 lines
864 B
Python

"""
Course home api models file
"""
from django.db import models
from django.utils.translation import gettext_lazy as _
from openedx.core.djangoapps.config_model_utils.models import StackedConfigurationModel
class DisableProgressPageStackedConfig(StackedConfigurationModel):
"""
Stacked Config Model for disabling the frontend-app-learning progress page
.. no_pii:
"""
STACKABLE_FIELDS = ('disabled',)
# Since this config disables the progress page,
# it seemed it would be clearer to use a disabled flag instead of an enabled flag.
# The enabled field still exists but is not used or shown in the admin.
disabled = models.BooleanField(default=None, verbose_name=_("Disabled"), null=True)
def __str__(self):
return "DisableProgressPageStackedConfig(disabled={!r})".format(
self.disabled
)