1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Refs #27795 -- Stopped converting integer format settings to str in JS/JSON i18n views

Thanks Tim Graham for the review.
This commit is contained in:
Claude Paroz
2017-04-27 10:50:48 +02:00
parent e3a88c7797
commit d842ada305
5 changed files with 30 additions and 13 deletions

View File

@@ -4,6 +4,14 @@
</head>
<body>
<p id="formats">
<script type="text/javascript">
document.write("DATE_INPUT_FORMATS is an " + typeof get_format("DATE_INPUT_FORMATS") + "; ");
document.write("DECIMAL_SEPARATOR is a " + typeof get_format("DECIMAL_SEPARATOR") + "; ");
document.write("FIRST_DAY_OF_WEEK is a " + typeof get_format("FIRST_DAY_OF_WEEK") + ";");
</script>
</p>
<p id="gettext">
<script type="text/javascript">
document.write(gettext("Remove"));