From f650fb35bd977d868930a23e6a6f36d9c657b66f Mon Sep 17 00:00:00 2001 From: IT Fixcomart Date: Mon, 7 Nov 2022 10:56:02 +0700 Subject: Add display name on response --- indoteknik_api/models/product_template.py | 1 + 1 file changed, 1 insertion(+) 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, -- cgit v1.2.3