Make environment overrided setting message more clear.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -3,7 +3,6 @@ from __future__ import unicode_literals
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from common import MayanAppConfig, menu_sidebar, menu_setup, menu_object
|
||||
from common.widgets import TwoStateWidget
|
||||
from navigation import SourceColumn
|
||||
|
||||
from .classes import Namespace, Setting
|
||||
@@ -38,11 +37,8 @@ class SmartSettingsApp(MayanAppConfig):
|
||||
source=Setting, label=_('Value'), attribute='serialized_value'
|
||||
)
|
||||
SourceColumn(
|
||||
source=Setting, label=_('Environment variable'),
|
||||
func=lambda context: TwoStateWidget(
|
||||
center=True,
|
||||
state=context['object'].environment_variable
|
||||
).render()
|
||||
source=Setting, label=_('Overrided by environment variable?'),
|
||||
func=lambda context: _('Yes') if context['object'].environment_variable else _('No')
|
||||
)
|
||||
|
||||
menu_object.bind_links(
|
||||
|
||||
Reference in New Issue
Block a user