mirror of https://github.com/jumpserver/jumpserver
fix: 授权actions serializer 设置default值
parent
de9516dee5
commit
90299a508c
|
@ -63,6 +63,7 @@ class ApplicationPermissionSerializer(BulkOrgResourceModelSerializer):
|
||||||
for choice in exclude_choices:
|
for choice in exclude_choices:
|
||||||
choices.pop(choice, None)
|
choices.pop(choice, None)
|
||||||
actions._choices = choices
|
actions._choices = choices
|
||||||
|
actions.default = list(choices.keys())
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setup_eager_loading(cls, queryset):
|
def setup_eager_loading(cls, queryset):
|
||||||
|
|
Loading…
Reference in New Issue