summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/apache_solr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/apache_solr.py b/indoteknik_custom/models/apache_solr.py
index 50f3d8f1..6bd717b2 100644
--- a/indoteknik_custom/models/apache_solr.py
+++ b/indoteknik_custom/models/apache_solr.py
@@ -38,8 +38,8 @@ class ApacheSolr(models.Model):
else:
price_excl_after_disc = price_excl_after_disc
price_excl = price_excl
- variants_name += variant.display_name+', '
- variants_code += variant.default_code+', '
+ variants_name += variant.display_name or ''+', '
+ variants_code += variant.default_code or ''+', '
document=[({
'id': template.id,