Convert all apps to use the new class based settings
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
"""Configuration options for the permissions 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'permissions',
|
||||
module=u'permissions.conf.settings',
|
||||
settings=[
|
||||
{'name': u'DEFAULT_ROLES', 'global_name': u'ROLES_DEFAULT_ROLES', 'default': [], 'description': _('A list of existing roles that are automatically assigned to newly created users')},
|
||||
]
|
||||
namespace = SettingNamespace('permissions', _(u'Permissions'), module='permissions.conf.settings')
|
||||
|
||||
Setting(
|
||||
namespace=namespace,
|
||||
name='DEFAULT_ROLES',
|
||||
global_name='ROLES_DEFAULT_ROLES',
|
||||
default=[],
|
||||
description=_(u'A list of existing roles that are automatically assigned to newly created users')
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user