Browse Source

fix: 授权actions serializer 设置default值

pull/7452/head
Michael Bai 3 years ago committed by 老广
parent
commit
90299a508c
  1. 1
      apps/perms/serializers/application/permission.py

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

Loading…
Cancel
Save