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):