diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-09-08 11:24:15 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-09-08 11:24:15 +0700 |
| commit | 3bf156fdc669bc57d729f2574f44a4beb4b7b79e (patch) | |
| tree | c03a92f06c0a1da80139862928984a0fccbaad2f /indoteknik_custom/models/solr/product_product.py | |
| parent | 12770546a41f846f721d32c296a598315c30b80b (diff) | |
add attributes to api product
Diffstat (limited to 'indoteknik_custom/models/solr/product_product.py')
| -rw-r--r-- | indoteknik_custom/models/solr/product_product.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/solr/product_product.py b/indoteknik_custom/models/solr/product_product.py index 88ab8dd5..54b098e5 100644 --- a/indoteknik_custom/models/solr/product_product.py +++ b/indoteknik_custom/models/solr/product_product.py @@ -152,6 +152,7 @@ class ProductProduct(models.Model): 'stock': doc.get('stock_total_f'), 'weight': doc.get('weight_f'), 'manufacture': None, + 'attributes': [x.name for x in product.product_template_attribute_value_ids], 'is_flashsale': True if flashsale else False } |
