diff --git a/myproject/products/templates/products/catalog.html b/myproject/products/templates/products/catalog.html index 3caee28..55a06d3 100644 --- a/myproject/products/templates/products/catalog.html +++ b/myproject/products/templates/products/catalog.html @@ -285,9 +285,9 @@ {# Информация об остатках для товаров #}
- - {{ item.total_free|floatformat:0 }} свободно - / {{ item.total_available|floatformat:0 }} всего + + {{ item.total_free|floatformat:"-3" }} свободно + / {{ item.total_available|floatformat:"-3" }} всего
{% endif %} diff --git a/myproject/products/templates/products/products_list.html b/myproject/products/templates/products/products_list.html index 1fb59f5..5d7d34f 100644 --- a/myproject/products/templates/products/products_list.html +++ b/myproject/products/templates/products/products_list.html @@ -193,8 +193,8 @@ {% if item.item_type == 'product' %} - {{ item.total_free|floatformat:0 }}{% if item.total_reserved > 0 %} / {{ item.total_available|floatformat:0 }} - {{ item.total_reserved|floatformat:0 }} в резерве + {{ item.total_free|floatformat:-2 }}{% if item.total_reserved > 0 %} / {{ item.total_available|floatformat:-2 }} + {{ item.total_reserved|floatformat:-2 }} в резерве {% endif %} {% else %} -