Create read-only serializer to handle User/UserProfile data together. Refactor GET accounts to use the new read-only joint serializer Fix tests to check for new expanded user info Update tests in teams/tests/test_views.py to test for both public and private profiles on expands user Update serializer to utilize the request object for creating absolute uris
13 lines
270 B
Python
13 lines
270 B
Python
"""
|
|
Defines common methods shared by Teams classes
|
|
"""
|
|
|
|
from django.conf import settings
|
|
|
|
|
|
def is_feature_enabled(course):
|
|
"""
|
|
Returns True if the teams feature is enabled.
|
|
"""
|
|
return settings.FEATURES.get('ENABLE_TEAMS', False) and course.teams_enabled
|