don't trim script whitespace

This commit is contained in:
wh1te909 2024-10-18 06:20:13 +00:00
parent 85166b6e8b
commit 4166e92754
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,7 @@ class ScriptSerializer(ModelSerializer):
"run_as_user",
"env_vars",
]
extra_kwargs = {"script_body": {"trim_whitespace": False}}
class ScriptCheckSerializer(ModelSerializer):
@ -63,3 +64,4 @@ class ScriptSnippetSerializer(ModelSerializer):
class Meta:
model = ScriptSnippet
fields = "__all__"
extra_kwargs = {"code": {"trim_whitespace": False}}