This will remove imports from __future__ that are no longer needed. https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
16 lines
311 B
Python
16 lines
311 B
Python
"""
|
|
Defines common methods shared by Teams classes
|
|
"""
|
|
|
|
|
|
from django.conf import settings
|
|
|
|
TEAM_DISCUSSION_CONTEXT = 'standalone'
|
|
|
|
|
|
def is_feature_enabled(course):
|
|
"""
|
|
Returns True if the teams feature is enabled.
|
|
"""
|
|
return settings.FEATURES.get('ENABLE_TEAMS', False) and course.teams_enabled
|