fix: 授权actions serializer 设置default值

pull/7452/head
Michael Bai 3 years ago committed by 老广
parent de9516dee5
commit 90299a508c

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

Loading…
Cancel
Save