Skip to content

Commit 80b7400

Browse files
author
Lukas Vinclav
authored
Merge pull request #13 from Qu4tro/fix_min_value_0
Fix minimum as zero case.
2 parents c131068 + 3cbf587 commit 80b7400

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 is not None and choice.max is not None 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)