Consider user entitlements and use entitlement products in bundle one-click purchase
This commit is contained in:
committed by
McKenzie Welter
parent
c25e4ba045
commit
f72cf800e1
@@ -136,10 +136,10 @@ class CourseMode(models.Model):
|
||||
|
||||
HONOR = 'honor'
|
||||
PROFESSIONAL = 'professional'
|
||||
VERIFIED = "verified"
|
||||
AUDIT = "audit"
|
||||
NO_ID_PROFESSIONAL_MODE = "no-id-professional"
|
||||
CREDIT_MODE = "credit"
|
||||
VERIFIED = 'verified'
|
||||
AUDIT = 'audit'
|
||||
NO_ID_PROFESSIONAL_MODE = 'no-id-professional'
|
||||
CREDIT_MODE = 'credit'
|
||||
|
||||
DEFAULT_MODE = Mode(
|
||||
settings.COURSE_MODE_DEFAULTS['slug'],
|
||||
|
||||
@@ -24,3 +24,10 @@ class CourseEntitlement(TimeStampedModel):
|
||||
help_text='The current Course enrollment for this entitlement. If NULL the Learner has not enrolled.'
|
||||
)
|
||||
order_number = models.CharField(max_length=128, null=True)
|
||||
|
||||
@property
|
||||
def expired_at_datetime(self):
|
||||
"""
|
||||
Getter to be used instead of expired_at because of the conditional check and update
|
||||
"""
|
||||
return self.expired_at
|
||||
|
||||
Reference in New Issue
Block a user