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