summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-03-30 09:52:24 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-03-30 09:52:24 +0700
commit2b6397837c3b369cb67b7710228aaf23676434df (patch)
tree896a9914e07b4a30fc30bd3c4265c43d74e488cb
parenta7c5bef3987edb8bab1fce6219d9bfdce1fc65af (diff)
bug fix error boolean + string
-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,