Commit 535980eb by David Ormsbee

Allow optional advertised_start metadata in Course, to let people pre-launch…

Allow optional advertised_start metadata in Course, to let people pre-launch thier courses quietly if desired.
parent 2c01bf4a
...@@ -247,7 +247,8 @@ class CourseDescriptor(SequenceDescriptor): ...@@ -247,7 +247,8 @@ class CourseDescriptor(SequenceDescriptor):
@property @property
def start_date_text(self): def start_date_text(self):
return time.strftime("%b %d, %Y", self.start) displayed_start = self._try_parse_time('advertised_start') or self.start
return time.strftime("%b %d, %Y", displayed_start)
# An extra property is used rather than the wiki_slug/number because # An extra property is used rather than the wiki_slug/number because
# there are courses that change the number for different runs. This allows # there are courses that change the number for different runs. This allows
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment