Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Use dash instead of underscore in directories

Pacu22027d9dd47ff
diff --git a/saleor/core/utils/random_data.py b/saleor/core/utils/random_data.py
index a0903dc98a..159a9dbe7f 100644
--- a/saleor/core/utils/random_data.py
+++ b/saleor/core/utils/random_data.py
@@ -30,7 +30,7 @@ fake = Factory.create()
STOCK_LOCATION = 'default'
DELIVERY_REGIONS = [ANY_COUNTRY, 'US', 'PL', 'DE', 'GB']
-PRODUCTS_LIST_DIR = 'products_list/'
+PRODUCTS_LIST_DIR = 'products-list/'
DEFAULT_SCHEMA = {
'T-Shirt': {
'category': {
diff --git a/saleor/product/migrations/0053_auto_20180305_1002.py b/saleor/product/migrations/0053_auto_20180305_1002.py
index d05503832e..cf167de96e 100644
--- a/saleor/product/migrations/0053_auto_20180305_1002.py
+++ b/saleor/product/migrations/0053_auto_20180305_1002.py
@@ -14,11 +14,11 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='category',
name='background_image',
- field=versatileimagefield.fields.VersatileImageField(blank=True, null=True, upload_to='category_backgrounds'),
+ field=versatileimagefield.fields.VersatileImageField(blank=True, null=True, upload_to='category-backgrounds'),
),
migrations.AddField(
model_name='collection',
name='background_image',
- field=versatileimagefield.fields.VersatileImageField(blank=True, null=True, upload_to='collection_backgrounds'),
+ field=versatileimagefield.fields.VersatileImageField(blank=True, null=True, upload_to='collection-backgrounds'),
),
]
diff --git a/saleor/product/models.py b/saleor/product/models.py
index e0f29c23ef..07aacb12b1 100644
--- a/saleor/product/models.py
+++ b/saleor/product/models.py
@@ -30,7 +30,7 @@ class Category(MPTTModel):
'self', null=True, blank=True, related_name='children',
on_delete=models.CASCADE)
background_image = VersatileImageField(
- upload_to='category_backgrounds', blank=True, null=True)
+ upload_to='category-backgrounds', blank=True, null=True)
objects = models.Manager()
tree = TreeManager()
@@ -402,7 +402,7 @@ class Collection(models.Model):
products = models.ManyToManyField(
Product, blank=True, related_name='collections')
background_image = VersatileImageField(
- upload_to='collection_backgrounds', blank=True, null=True)
+ upload_to='collection-backgrounds', blank=True, null=True)
class Meta:
ordering = ['pk']