From 39051ef0fd13755193cb1c0a78b21f3f6dfa9889 Mon Sep 17 00:00:00 2001 From: wangruidong <940853815@qq.com> Date: Tue, 9 Jul 2024 17:03:17 +0800 Subject: [PATCH] fix: import role template csv failed --- apps/rbac/serializers/role.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/rbac/serializers/role.py b/apps/rbac/serializers/role.py index 4a16db9db..37e814e4f 100644 --- a/apps/rbac/serializers/role.py +++ b/apps/rbac/serializers/role.py @@ -27,6 +27,7 @@ class RoleSerializer(serializers.ModelSerializer): 'users_amount': {'label': _('Users amount')}, 'display_name': {'label': _('Name')} } + fields_unexport = ['permissions'] class RoleUserSerializer(serializers.ModelSerializer):