From 3681206164462bcd6fe84808b7639c5994a9510f Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Sat, 13 Jul 2024 09:11:22 +0700 Subject: add image_s to solr promotion program --- indoteknik_custom/models/solr/promotion_program.py | 1 + 1 file changed, 1 insertion(+) diff --git a/indoteknik_custom/models/solr/promotion_program.py b/indoteknik_custom/models/solr/promotion_program.py index 583d7df3..db029adc 100644 --- a/indoteknik_custom/models/solr/promotion_program.py +++ b/indoteknik_custom/models/solr/promotion_program.py @@ -30,6 +30,7 @@ class PromotionProgram(models.Model): 'id': rec.id, 'name_s': rec.name, 'banner_s': ir_attachment.api_image(self._name, 'banner', rec.id) if rec.banner else '', + 'image_s': ir_attachment.api_image(self._name, 'image', rec.id) if rec.banner else '', 'keywords': [x.name for x in rec.keyword_ids], 'line_ids': [x.id for x in rec.program_line], 'start_time_s': self._time_format(rec.start_time), -- cgit v1.2.3