summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-07-17 13:28:54 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-07-17 13:28:54 +0700
commit7bef101732668ba8044a0e4392a17b0b15eaa09b (patch)
treee75107dff566473ec59c7f6bd4a7d26f2caf39ca /indoteknik_custom/models
parent00c433febb54683b602641078d75db9ce4bbc9b5 (diff)
<iman> add description to banner
Diffstat (limited to 'indoteknik_custom/models')
-rw-r--r--indoteknik_custom/models/solr/x_banner_banner.py2
-rwxr-xr-xindoteknik_custom/models/x_banner_banner.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/indoteknik_custom/models/solr/x_banner_banner.py b/indoteknik_custom/models/solr/x_banner_banner.py
index 67739d47..ec5c4175 100644
--- a/indoteknik_custom/models/solr/x_banner_banner.py
+++ b/indoteknik_custom/models/solr/x_banner_banner.py
@@ -49,7 +49,9 @@ class XBannerBanner(models.Model):
'category_id_i': banners.x_banner_category.id or '',
'manufacture_id_i': banners.x_relasi_manufacture.id or '',
'group_by_week': banners.group_by_week or '',
+ 'description_banner_s': banners.x_description_banner or '',
})
+ _logger.info("[SYNC_PRODUCT_RATING_TO_SOLR] Success Set to solr product %s" % banners)
self.solr().add([document])
banners.update_last_update_solr()
diff --git a/indoteknik_custom/models/x_banner_banner.py b/indoteknik_custom/models/x_banner_banner.py
index d6884c9b..832b7505 100755
--- a/indoteknik_custom/models/x_banner_banner.py
+++ b/indoteknik_custom/models/x_banner_banner.py
@@ -23,4 +23,5 @@ class XBannerBanner(models.Model):
('2', '2'),
('3', '3'),
('4', '4')
- ], string='Group by Week') \ No newline at end of file
+ ], string='Group by Week')
+ x_description_banner = fields.Char(string="Description Banner") \ No newline at end of file