Add support for CUSTOM_LOGO and CUSTOM_LOGIN_INFO settings, add support to migrate from local_settings.json and custom_console_logo.png.

This commit is contained in:
Chris Church
2016-11-21 15:33:07 -05:00
parent 06510ce4b9
commit a35ed0a09d
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)