Fix edge checklist 500 error

EDUCATOR-3355
This commit is contained in:
Awais Jibran
2018-08-27 18:12:39 +05:00
parent 71161b8eda
commit 3bb34faa8f
8 changed files with 593 additions and 90 deletions

View File

@@ -57,3 +57,14 @@ def get_link_for_about_page(course):
)
return course_about_url
def has_certificates_enabled(course):
"""
Arguments:
course: This can be either a course overview object or a course descriptor.
Returns a boolean if the course has enabled certificates
"""
if not settings.FEATURES.get('CERTIFICATES_HTML_VIEW', False):
return False
return course.cert_html_view_enabled