product.title = record.title
product.content = shop.desc
+ product.slug = '' # If left blank, the main title field will be used.
+ product.description = '' # Leave blank to have the URL auto-generated from the title.
+ product.gen_description = True
+
# Category
theme = rec_models.Theme.objects.get(id=shop.theme)
category_id = THEME_TO_CATEGORY[theme.pk]
product.save()
default_variation = product.variations.get(default=True)
- default_variation.sku = "DD_REC_" + str(record.pk)
+ default_variation.sku = "REC_" + str(record.pk)
default_variation.save()
self.stdout.write('Product %d / %d --> %s' % (product.pk,len(OLD_SHOP_LIST), product.available))