Skip to content

Commit 73b1fbf

Browse files
author
Lukas Vinclav
authored
Merge pull request #12 from qdelcourte/11_fix_field_format_localization
Fix decimal format localization
2 parents 80b7400 + ef672f9 commit 73b1fbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

admin_numeric_filter/templates/admin/filter_numeric_slider.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% load i18n %}
2+
{% load l10n %}
23

34
{% with choices.0 as choice %}
45
<form method="get" class="admin-numeric-filter-wrapper">
@@ -16,7 +17,7 @@ <h3>{% blocktrans with filter_title=title %}By {{ filter_title }}{% endblocktran
1617
<span class="admin-numeric-filter-slider-tooltip-to">{{ choice.value_to }}</span>
1718
</div><!-- /.admin-numeric-filter-slider-tooltips -->
1819

19-
<div class="admin-numeric-filter-slider" data-min="{{ choice.min }}" data-max="{{ choice.max }}" data-decimals="{{ choice.decimals }}" data-step="{{ choice.step }}">
20+
<div class="admin-numeric-filter-slider" data-min="{{ choice.min|unlocalize }}" data-max="{{ choice.max|unlocalize }}" data-decimals="{{ choice.decimals }}" data-step="{{ choice.step|unlocalize }}">
2021
</div><!-- /.admin-numeric-filter-slider -->
2122

2223
<div class="admin-numeric-filter-wrapper-group hidden">

0 commit comments

Comments
 (0)