Add another attribute to CourseOverview to support the Teams tab
This commit is contained in:
@@ -821,6 +821,13 @@ class CourseOverview(TimeStampedModel):
|
||||
"""
|
||||
return self._original_course.course_visibility
|
||||
|
||||
@property
|
||||
def teams_enabled(self):
|
||||
"""
|
||||
TODO: move this to the model.
|
||||
"""
|
||||
return self._original_course.teams_enabled
|
||||
|
||||
def __str__(self):
|
||||
"""Represent ourselves with the course key."""
|
||||
return six.text_type(self.id)
|
||||
|
||||
Reference in New Issue
Block a user