Convert all apps to use the new class based settings
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
'''Configuration options for the linking app'''
|
||||
"""Configuration options for the linking app"""
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from smart_settings.api import register_settings
|
||||
from smart_settings.api import Setting, SettingNamespace
|
||||
|
||||
register_settings(
|
||||
namespace=u'linking',
|
||||
module=u'linking.conf.settings',
|
||||
settings=[
|
||||
{'name': u'SHOW_EMPTY_SMART_LINKS', 'global_name': u'LINKING_SHOW_EMPTY_SMART_LINKS', 'default': True, 'description': _(u'Show smart link that don\'t return any documents.')},
|
||||
]
|
||||
namespace = SettingNamespace('linking', _(u'Linking'), module='linking.conf.settings')
|
||||
|
||||
Setting(
|
||||
namespace=namespace,
|
||||
name='SHOW_EMPTY_SMART_LINKS',
|
||||
global_name='LINKING_SHOW_EMPTY_SMART_LINKS',
|
||||
default=True,
|
||||
description=_(u'Show smart link that don\'t return any documents.')
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user