summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-09-11 13:29:15 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-09-11 13:29:15 +0700
commit79a947ac63c33976fe06f54d9ee9385d19caf4a5 (patch)
treee44ad3420d88bb4f32bf1572dd896f1e126c9e33
parent280bbb7325b35860eb1cc807d531e7cc9b5138b2 (diff)
fix field tampil di index
-rw-r--r--indoteknik_custom/models/solr/product_public_category.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/solr/product_public_category.py b/indoteknik_custom/models/solr/product_public_category.py
index 0bb34674..d6a37571 100644
--- a/indoteknik_custom/models/solr/product_public_category.py
+++ b/indoteknik_custom/models/solr/product_public_category.py
@@ -51,7 +51,7 @@ class ProductPublicCategory(models.Model):
'website_meta_title_s': category.website_meta_title or '',
'website_meta_keywords_s': category.website_meta_keywords or '',
'website_meta_desc_t': category.website_meta_description or '',
- 'tampil_di_index_b': category.x_studio_field_4qhoN or '',
+ 'tampil_di_index': category.x_studio_field_4qhoN if category.x_studio_field_4qhoN is not None else False,
'sequence_frontend_i': category.sequence_frontend or 0,
'parent_frontend_id_i': parent_frontend.id if parent_frontend else 0,
'parent_frontend_name_s': parent_frontend.name if parent_frontend else '',