Add another attribute to CourseOverview to support the Teams tab

This commit is contained in:
Dave St.Germain
2020-03-09 15:12:44 -04:00
parent af7103c313
commit 5a4d03b7b2

View File

@@ -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)