Skip to content

Commit 7b046cc

Browse files
committed
Fix minimum == 0 case for filters.
1 parent c131068 commit 7b046cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin_numeric_filter/templates/admin/filter_numeric_slider.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<h3>{% blocktrans with filter_title=title %}By {{ filter_title }}{% endblocktrans %}</h3>
1212

13-
{% if choice.min and choice.max and choice.step %}
13+
{% if choice.min or choice.min == 0 and choice.max or choice.max == 0 and choice.step %}
1414
<div class="admin-numeric-filter-slider-tooltips">
1515
<span class="admin-numeric-filter-slider-tooltip-from">{{ choice.value_from }}</span>
1616
<span class="admin-numeric-filter-slider-tooltip-to">{{ choice.value_to }}</span>
@@ -32,4 +32,4 @@ <h3>{% blocktrans with filter_title=title %}By {{ filter_title }}{% endblocktran
3232
</div><!-- /.admin-numeric-filter-slider-error -->
3333
{% endif %}
3434
</form>
35-
{% endwith %}
35+
{% endwith %}

0 commit comments

Comments
 (0)