Update CSS
This commit is contained in:
@@ -228,8 +228,8 @@ class CatalogViewTests(TestCase):
|
||||
|
||||
self.assertContains(response, 'data-price-slider', html=False)
|
||||
self.assertContains(response, 'type="range"', count=2, html=False)
|
||||
self.assertContains(response, 'min="200.00"', html=False)
|
||||
self.assertContains(response, 'max="1600.00"', html=False)
|
||||
self.assertContains(response, 'min="200"', html=False)
|
||||
self.assertContains(response, 'max="1600"', html=False)
|
||||
self.assertContains(response, 'src="/static/js/catalog-price-slider.js"', html=False)
|
||||
|
||||
def test_item_card_uses_primary_image(self):
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from dataclasses import dataclass
|
||||
from decimal import Decimal, InvalidOperation
|
||||
from decimal import Decimal, InvalidOperation, ROUND_HALF_UP
|
||||
from urllib.parse import urlencode
|
||||
|
||||
from django.core.paginator import Paginator
|
||||
@@ -91,7 +91,7 @@ def _resolve_catalog_scope(scope_value: str | None) -> tuple[str | None, str | N
|
||||
|
||||
|
||||
def _format_price_value(value: Decimal) -> str:
|
||||
return str(int(value))
|
||||
return format(value.quantize(Decimal("1"), rounding=ROUND_HALF_UP), "f")
|
||||
|
||||
|
||||
def index(request: HttpRequest, category: str | None = None) -> HttpResponse:
|
||||
|
||||
Reference in New Issue
Block a user