Merge pull request #991 from MITx/feature/dave/open_date

Allow optional advertised_start metadata in Course
This commit is contained in:
Carlos Andrés Rocha
2012-10-30 12:10:23 -07:00

View File

@@ -247,7 +247,8 @@ class CourseDescriptor(SequenceDescriptor):
@property
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
# there are courses that change the number for different runs. This allows