Ejemplo n.º 1
0
 class Meta:
     verbose_name = verbose_name_plural = '用户'
     default_permissions = ()
     permissions = [('group_manage', '权限组管理'),
                    ('role_manage', '角色管理'),
                    ('organization_manage', '组织管理')
                    ] + custom_model_permission('user', verbose_name, ['read', 'add', 'delete', 'change'])
Ejemplo n.º 2
0
 class Meta:
     unique_together = ('name', 'parent_organization',)
     verbose_name = verbose_name_plural = '组织'
     default_permissions = ()
     permissions = custom_model_permission('organization', verbose_name, ['read', 'add', 'delete', 'change'])
Ejemplo n.º 3
0
 class Meta:
     verbose_name = verbose_name_plural = '角色'
     default_permissions = ()
     permissions = custom_model_permission('role', verbose_name, ['read', 'add', 'delete', 'change'])
Ejemplo n.º 4
0
 class Meta:
     verbose_name = verbose_name_plural = '操作日志'
     default_permissions = ()
     permissions = custom_model_permission('operationlog', verbose_name, ['read', 'add', 'delete', 'change'])