django-not-configured is an error raised by pylint (with the pylint-django plugin) when it's not correctly configured. We should not be applying lint amnesty for such a violation.
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
|