refactor: 重构权限管理

1.更新字段管理
This commit is contained in:
猿小天
2023-11-21 17:51:19 +08:00
parent 54e4d23cf7
commit c04b33ed31
2 changed files with 1 additions and 3 deletions

View File

@@ -128,7 +128,7 @@ class RoleInitSerializer(CustomModelSerializer):
class Meta:
model = Role
fields = ['name', 'key', 'sort', 'status', 'admin',
fields = ['name', 'key', 'sort', 'status',
'creator', 'dept_belong_id']
read_only_fields = ["id"]
extra_kwargs = {