From ad62150f5eb73f28c27ca3e20760f68be8dbd281 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 22 Nov 2022 10:30:40 +0700 Subject: add search_rank_weekly in rest product solr --- indoteknik_api/models/product_template.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indoteknik_api/models/product_template.py b/indoteknik_api/models/product_template.py index 780c92e5..9e8d04bc 100644 --- a/indoteknik_api/models/product_template.py +++ b/indoteknik_api/models/product_template.py @@ -45,7 +45,8 @@ class ProductTemplate(models.Model): data_with_detail = { 'solr_flag': product_template.solr_flag, 'product_rating': rate, - 'search_rank': product_template.search_rank + 'search_rank': product_template.search_rank, + 'search_rank_weekly': product_template.search_rank_weekly } data.update(data_with_detail) return data -- cgit v1.2.3