Commit 9a21c5d4 by Arjun Singh

Adding reasoning for adding a new metadata field

parent 0b6bf773
......@@ -197,6 +197,10 @@ class CourseDescriptor(SequenceDescriptor):
def start_date_text(self):
return time.strftime("%b %d, %Y", self.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
# courses to share the same css_class across runs even if they have
# different numbers.
@property
def css_class(self):
return self.metadata.get('css_class', '')
......
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