Add permission post init to initialize signal handler and registry file
This commit is contained in:
25
apps/permissions/registry.py
Normal file
25
apps/permissions/registry.py
Normal file
@@ -0,0 +1,25 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from smart_settings import LocalScope
|
||||
|
||||
from .icons import icon_permissions
|
||||
from .links import role_list
|
||||
|
||||
name = 'permissions'
|
||||
label = _(u'Permissions')
|
||||
description = _(u'Handles the permissions in a project.')
|
||||
icon = icon_permissions
|
||||
dependencies = ['app_registry', 'smart_settings']
|
||||
|
||||
settings=[
|
||||
{
|
||||
'name': 'DEFAULT_ROLES',
|
||||
'default': [],
|
||||
'description': _(u'A list of existing roles that are automatically assigned to newly created users'),
|
||||
'scopes': [LocalScope()]
|
||||
}
|
||||
]
|
||||
|
||||
setup_links=[role_list]
|
||||
Reference in New Issue
Block a user