Files
edx-platform/openedx/core/djangoapps/schedules/models.py
Clinton Blackburn 7274a20f38 Created Schedule model
This model will be used to control dynamic upgrade deadlines for
learners.
2017-08-05 22:06:17 -04:00

19 lines
730 B
Python

from django.db import models
from django.utils.translation import ugettext_lazy as _
from django_extensions.db.models import TimeStampedModel
class Schedule(TimeStampedModel):
enrollment = models.OneToOneField('student.CourseEnrollment', null=False)
active = models.BooleanField(default=True, help_text=_('Indicates if this schedule is actively used'))
start = models.DateTimeField(help_text=_('Date this schedule went into effect'))
upgrade_deadline = models.DateTimeField(
blank=True,
null=True,
help_text=_('Deadline by which the learner must upgrade to a verified seat')
)
class Meta(object):
verbose_name = _('Schedule')
verbose_name_plural = _('Schedules')