summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-11-07 10:56:02 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-11-07 10:56:02 +0700
commitf650fb35bd977d868930a23e6a6f36d9c657b66f (patch)
treef1ccf24fda7f096260467a5ca2849a1bc5877ad1
parent9445ee96166538d1545e6e1208def1ba83cd172f (diff)
Add display name on response
-rw-r--r--indoteknik_api/models/product_template.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_api/models/product_template.py b/indoteknik_api/models/product_template.py
index a1e2e5a4..8ced0374 100644
--- a/indoteknik_api/models/product_template.py
+++ b/indoteknik_api/models/product_template.py
@@ -23,6 +23,7 @@ class ProductTemplate(models.Model):
if with_detail:
data_with_detail = {
'image': base_url + 'api/image/product.template/image_512/' + str(product_template.id) if product_template.image_512 else '',
+ 'display_name': product_template.display_name,
'variants': [],
'description': product_template.website_description or '',
'solr_flag': product_template.solr_flag,