diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-11-22 10:30:40 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-11-22 10:30:40 +0700 |
| commit | ad62150f5eb73f28c27ca3e20760f68be8dbd281 (patch) | |
| tree | bcf970fec7b14e8184fa1a70df786a3a741173e3 | |
| parent | 1d144203dfc9cdaef66c8ab70e7a7432ea9e8bc8 (diff) | |
add search_rank_weekly in rest product solr
| -rw-r--r-- | indoteknik_api/models/product_template.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
