From 71a0510af138ea4f452b1e3e72d4b63246dcf411 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 26 Sep 2018 20:27:07 -0400 Subject: [PATCH] Expose the Django INSTALLED_APPS setting. Signed-off-by: Roberto Rosario --- HISTORY.rst | 1 + mayan/apps/common/settings.py | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/HISTORY.rst b/HISTORY.rst index b844adc68d..94752844c8 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -4,6 +4,7 @@ * Fix user groups view. * Add no results help text to the document type -> metadata type association view. +* Expose the Django INSTALLED_APPS setting. 3.1.2 (2018-09-21) ================== diff --git a/mayan/apps/common/settings.py b/mayan/apps/common/settings.py index eb25882bd5..ae94234e17 100644 --- a/mayan/apps/common/settings.py +++ b/mayan/apps/common/settings.py @@ -236,6 +236,16 @@ setting_home_view = namespace.add_setting( 'Name of the view attached to the branch anchor in the main menu.' ), ) +setting_django_installed_apps = namespace.add_setting( + global_name='INSTALLED_APPS', + default=settings.INSTALLED_APPS, + help_text=_( + 'A list of strings designating all applications that are enabled ' + 'in this Django installation. Each string should be a dotted ' + 'Python path to: an application configuration class (preferred), ' + 'or a package containing an application.' + ), +) setting_django_login_url = namespace.add_setting( global_name='LOGIN_URL', default=settings.LOGIN_URL,