populate markdown into problem editor template

This commit is contained in:
Don Mitchell
2013-01-03 12:02:45 -05:00
parent 68def8af5b
commit 47ca316d25

View File

@@ -659,6 +659,12 @@ class CapaDescriptor(RawDescriptor):
# actually use type and points?
metadata_attributes = RawDescriptor.metadata_attributes + ('type', 'points')
def get_context(self):
_context = RawDescriptor.get_context(self)
_context.update({'markdown': self.metadata.get('markdown', '')})
return _context
# VS[compat]
# TODO (cpennington): Delete this method once all fall 2012 course are being
# edited in the cms