Commits

Sasha Vincic committed 97fb684

used THUMBNAIL_SIZES for product images too so we can override the configuration

Comments (0)

Files changed (1)

 from lfs.checkout.settings import CHECKOUT_TYPE_SELECT
 from lfs.core.fields.thumbs import ImageWithThumbsField
 from lfs.catalog.models import StaticBlock
-
+from lfs.catalog.settings import THUMBNAIL_SIZES
 
 class Country(models.Model):
     """Holds country relevant data for the shop.
     notification_emails = models.TextField(_(u"Notification email addresses"))
 
     description = models.TextField(_(u"Description"), blank=True)
-    image = ImageWithThumbsField(_(u"Image"), upload_to="images", blank=True, null=True, sizes=((60, 60), (100, 100), (200, 200), (400, 400)))
+    image = ImageWithThumbsField(_(u"Image"), upload_to="images", blank=True, null=True, sizes=THUMBNAIL_SIZES)
     static_block = models.ForeignKey(StaticBlock, verbose_name=_(u"Static block"), blank=True, null=True, related_name="shops")
 
     product_cols = models.IntegerField(_(u"Product cols"), default=1)