mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-16 07:56:21 +00:00
fix: 授权actions serializer 设置default值
This commit is contained in:
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…
Reference in New Issue
Block a user