mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-09 18:18:05 +00:00
perf: su_method allow_null (#9352)
Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
parent
26de26d7b0
commit
da915249ab
@ -91,9 +91,7 @@ class PlatformSerializer(WritableNestedModelSerializer):
|
|||||||
automation = PlatformAutomationSerializer(label=_("Automation"), required=False)
|
automation = PlatformAutomationSerializer(label=_("Automation"), required=False)
|
||||||
su_method = LabeledChoiceField(
|
su_method = LabeledChoiceField(
|
||||||
choices=[("sudo", "sudo su -"), ("su", "su - ")],
|
choices=[("sudo", "sudo su -"), ("su", "su - ")],
|
||||||
label="切换方式",
|
label="切换方式", required=False, default="sudo", allow_null=True
|
||||||
required=False,
|
|
||||||
default="sudo",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
Loading…
Reference in New Issue
Block a user