数据库
首页 > 数据库> > 【Python Admin】分组权限显示中文SQL语句

【Python Admin】分组权限显示中文SQL语句

作者:互联网

UPDATE "main"."auth_permission" SET "content_type_id" = 1,  "name" = 'Can add 日志记录' WHERE "codename" = 'add_logentry';
UPDATE "main"."auth_permission" SET "content_type_id" = 1,  "name" = 'Can change 日志记录' WHERE "codename" = 'change_logentry';
UPDATE "main"."auth_permission" SET "content_type_id" = 1,  "name" = 'Can delete 日志记录' WHERE "codename" = 'delete_logentry';
UPDATE "main"."auth_permission" SET "content_type_id" = 1,  "name" = 'Can view 日志记录' WHERE "codename" = 'view_logentry';
UPDATE "main"."auth_permission" SET "content_type_id" = 2,  "name" = 'Can add 权限' WHERE "codename" = 'add_permission';
UPDATE "main"."auth_permission" SET "content_type_id" = 2,  "name" = 'Can change 权限' WHERE "codename" = 'change_permission';
UPDATE "main"."auth_permission" SET "content_type_id" = 2,  "name" = 'Can delete 权限' WHERE "codename" = 'delete_permission';
UPDATE "main"."auth_permission" SET "content_type_id" = 2,  "name" = 'Can view 权限' WHERE "codename" = 'view_permission';
UPDATE "main"."auth_permission" SET "content_type_id" = 3,  "name" = 'Can add 角色(组)' WHERE "codename" = 'add_group';
UPDATE "main"."auth_permission" SET "content_type_id" = 3,  "name" = 'Can change 角色(组)' WHERE "codename" = 'change_group';
UPDATE "main"."auth_permission" SET "content_type_id" = 3,  "name" = 'Can delete 角色(组)' WHERE "codename" = 'delete_group';
UPDATE "main"."auth_permission" SET "content_type_id" = 3,  "name" = 'Can view 角色(组)' WHERE "codename" = 'view_group';
UPDATE "main"."auth_permission" SET "content_type_id" = 4,  "name" = 'Can add 内容类型' WHERE "codename" = 'add_contenttype';
UPDATE "main"."auth_permission" SET "content_type_id" = 4,  "name" = 'Can change 内容类型' WHERE "codename" = 'change_contenttype';
UPDATE "main"."auth_permission" SET "content_type_id" = 4,  "name" = 'Can delete 内容类型' WHERE "codename" = 'delete_contenttype';
UPDATE "main"."auth_permission" SET "content_type_id" = 4,  "name" = 'Can view 内容类型' WHERE "codename" = 'view_contenttype';
UPDATE "main"."auth_permission" SET "content_type_id" = 5,  "name" = 'Can add 访问Session' WHERE "codename" = 'add_session';
UPDATE "main"."auth_permission" SET "content_type_id" = 5,  "name" = 'Can change 访问Session' WHERE "codename" = 'change_session' ;
UPDATE "main"."auth_permission" SET "content_type_id" = 5,  "name" = 'Can delete 访问Session' WHERE "codename" = 'delete_session';
UPDATE "main"."auth_permission" SET "content_type_id" = 5,  "name" = 'Can view 访问Session' WHERE "codename" = 'view_session';
UPDATE "main"."auth_permission" SET "content_type_id" = 6,  "name" = 'Can add 定时任务列表' WHERE "codename" = 'add_djangojob';
UPDATE "main"."auth_permission" SET "content_type_id" = 6,  "name" = 'Can change 定时任务列表' WHERE "codename" = 'change_djangojob';
UPDATE "main"."auth_permission" SET "content_type_id" = 6,  "name" = 'Can delete 定时任务列表' WHERE "codename" = 'delete_djangojob';
UPDATE "main"."auth_permission" SET "content_type_id" = 6,  "name" = 'Can view 定时任务列表' WHERE  "codename" = 'view_djangojob';
UPDATE "main"."auth_permission" SET "content_type_id" = 7,  "name" = 'Can add 定时任务日志' WHERE "codename" = 'add_djangojobexecution';
UPDATE "main"."auth_permission" SET "content_type_id" = 7,  "name" = 'Can change 定时任务日志' WHERE "codename" = 'change_djangojobexecution';
UPDATE "main"."auth_permission" SET "content_type_id" = 7,  "name" = 'Can delete 定时任务日志' WHERE "codename" = 'delete_djangojobexecution';
UPDATE "main"."auth_permission" SET "content_type_id" = 7,  "name" = 'Can view 定时任务日志' WHERE "codename" = 'view_djangojobexecution';

 

标签:SET,permission,Python,content,Admin,SQL,main,type,id
来源: https://www.cnblogs.com/wanghong1994/p/16489030.html