Merge pull request #4092 from cchurch/custom-logo-custom-login-info

Add support for CUSTOM_LOGO and CUSTOM_LOGIN_INFO settings
This commit is contained in:
Chris Church
2016-11-22 14:50:59 -05:00
committed by GitHub
5 changed files with 227 additions and 11 deletions

View File

@@ -103,8 +103,11 @@ class ApiRootView(APIView):
current_version = current,
available_versions = dict(
v1 = current
)
),
)
if feature_enabled('rebranding'):
data['custom_logo'] = settings.CUSTOM_LOGO
data['custom_login_info'] = settings.CUSTOM_LOGIN_INFO
return Response(data)