Merge pull request #17503 from edx/bderusha/sp-cleanup

Removed self-paced feature flag from code
This commit is contained in:
Bill DeRusha
2018-02-26 14:42:53 -05:00
committed by GitHub
15 changed files with 52 additions and 74 deletions

View File

@@ -1408,8 +1408,10 @@ class CourseDescriptor(CourseFields, SequenceDescriptor, LicenseMixin):
Whether or not the course can be set to self-paced at this time.
Returns:
bool: False if the course has already started, True otherwise.
bool: False if the course has already started or no start date set, True otherwise.
"""
if not self.start:
return False
return datetime.now(utc) <= self.start