Removed self-paced feature flag from code

This commit is contained in:
Bill DeRusha
2018-02-16 13:46:16 -05:00
parent 312a9ec160
commit d4b57bc218
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