Wire up cert status

This commit is contained in:
Victor Shnayder
2012-11-09 12:02:01 -05:00
committed by Carlos Andrés Rocha
parent 01dcf291b6
commit cf33d85ef9
4 changed files with 97 additions and 48 deletions

View File

@@ -298,6 +298,16 @@ class CourseDescriptor(SequenceDescriptor):
# Explicit comparison to True because we always want to return a bool.
return self.metadata.get('hide_progress_tab') == True
@property
def end_of_course_survey_url(self):
"""
Pull from policy. Once we have our own survey module set up, can change this to point to an automatically
created survey for each class.
Returns None if no url specified.
"""
return self.metadata.get('end_of_course_survey_url')
@property
def title(self):
return self.display_name