From 6b8a59cfbda8cbfc3b78b94a939ebfe05677e200 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 23 Feb 2020 15:27:11 +0100 Subject: [PATCH] admin: show prettified yaml --- passbook/admin/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passbook/admin/fields.py b/passbook/admin/fields.py index 34702815a..4510ec846 100644 --- a/passbook/admin/fields.py +++ b/passbook/admin/fields.py @@ -48,7 +48,7 @@ class YAMLField(forms.CharField): def prepare_value(self, value): if isinstance(value, InvalidYAMLInput): return value - return yaml.dump(value, explicit_start=True) + return yaml.dump(value, explicit_start=True, default_flow_style=False) def has_changed(self, initial, data): if super().has_changed(initial, data):