Skip to content

Commit f9b8fe4

Browse files
authored
Improve JsonField form template (#639)
1 parent c186ae1 commit f9b8fe4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

starlette_admin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.15.0rc8"
1+
__version__ = "0.15.0rc9"
22

33
from ._types import ExportType as ExportType
44
from ._types import RequestAction as RequestAction

starlette_admin/templates/forms/json.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
</div>
66
<input type="text"
77
name="{{ field.id }}"
8-
value="{{ (data|tojson) if data else 'null' }}"
8+
value="{{ (data|tojson|forceescape) if data else 'null' }}"
99
hidden/>
1010
{% include "forms/_error.html" %}

0 commit comments

Comments
 (0)