* INCR-250: Make compatible with Python 3.x without breaking Python 2.7 support --> openedx/core/djangoapps/programs * INCR-250: Disable pylint warning and replace _f placeholder with actual name * INCR-250: pylint format correction and fix over length line limit
28 lines
796 B
Python
28 lines
796 B
Python
"""Models providing Programs support for the LMS and Studio."""
|
|
|
|
from __future__ import absolute_import
|
|
|
|
from config_models.models import ConfigurationModel
|
|
from django.db import models
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
|
class ProgramsApiConfig(ConfigurationModel):
|
|
"""
|
|
This model no longer fronts an API, but now sets a few config-related values for the idea of programs in general.
|
|
|
|
A rename to ProgramsConfig would be more accurate, but costly in terms of developer time.
|
|
|
|
.. no_pii:
|
|
"""
|
|
class Meta(object):
|
|
app_label = "programs"
|
|
|
|
marketing_path = models.CharField(
|
|
max_length=255,
|
|
blank=True,
|
|
help_text=_(
|
|
'Path used to construct URLs to programs marketing pages (e.g., "/foo").'
|
|
)
|
|
)
|