Skip to content
Browse files

Only return the image objects url & version bump

  • Loading branch information...
1 parent 2b414b9 commit c6409a1b11c8deee1089793024d1c27187572fd8 Zenobius Jiricek committed Feb 19, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 cmsplugin_configurableproduct/models.py
View
6 cmsplugin_configurableproduct/models.py
@@ -32,12 +32,12 @@ class ApplicationSettings(AppConf):
DEFAULT_CATEGORY_IMAGE_URL = os.path.join(STATIC_URL, 'defaults', 'img',
'product-category', 'missing-icon-{0}.png')
- CATEGORY_IMAGE_URL = '{0}/product-category/'.format(MEDIA_URL)
- CATEGORY_IMAGE_ROOT = '{0}/product-category/'.format(MEDIA_ROOT)
+ CATEGORY_IMAGE_URL = '{0}product-category'.format(MEDIA_URL)
+ CATEGORY_IMAGE_ROOT = '{0}product-category'.format(MEDIA_ROOT)
class ProductTypeIcon(models.Model):
- upload_path = lambda instance, filename: "files/product-category/{0}".format(
+ upload_path = lambda instance, filename: "product-category/{0}".format(
"{0}-{1}".format(slugify(instance.product_type), filename) )
# fields

0 comments on commit c6409a1

Please sign in to comment.
Something went wrong with that request. Please try again.