Commits

Kai Diefenbach committed 61e735a

Using get_default_shop.

  • Participants
  • Parent commits bc09839

Comments (0)

Files changed (1)

lfs/core/templatetags/lfs_tags.py

 from lfs.catalog.settings import PRODUCT_WITH_VARIANTS
 from lfs.catalog.settings import STANDARD_PRODUCT
 from lfs.catalog.settings import CONFIGURABLE_PRODUCT
-from lfs.page.models import Page
 from lfs.catalog.models import Product
 from lfs.catalog.models import PropertyOption
 from lfs.catalog.settings import PRODUCT_TYPE_LOOKUP
+import lfs.core.utils
 from lfs.core.models import Shop
 from lfs.core.models import Action
+from lfs.page.models import Page
 from lfs.shipping import utils as shipping_utils
 
 register = template.Library()
     """
     result = ''
     if value:
-        shop = lfs_get_object_or_404(Shop, pk=1)
+        shop = lfs.core.utils.get_default_shop()
         result = locale.currency(value, grouping=grouping, international=shop.use_international_currency_code)
         # add css class if value is negative
         if value < 0: