From 90299a508cfbd849ee4e4bdaff62c5ab46cb3be5 Mon Sep 17 00:00:00 2001 From: Michael Bai Date: Thu, 30 Dec 2021 17:11:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8E=88=E6=9D=83actions=20serializer?= =?UTF-8?q?=20=E8=AE=BE=E7=BD=AEdefault=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/perms/serializers/application/permission.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/perms/serializers/application/permission.py b/apps/perms/serializers/application/permission.py index fd886bb17..1df5b1eca 100644 --- a/apps/perms/serializers/application/permission.py +++ b/apps/perms/serializers/application/permission.py @@ -63,6 +63,7 @@ class ApplicationPermissionSerializer(BulkOrgResourceModelSerializer): for choice in exclude_choices: choices.pop(choice, None) actions._choices = choices + actions.default = list(choices.keys()) @classmethod def setup_eager_loading(cls, queryset):