diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-11-18 14:31:17 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-11-18 14:31:17 +0700 |
| commit | 74791f0a5fbadcaf6dc63bd185fd572d9b41fe5f (patch) | |
| tree | 2cac40bbd54b53721c0b0f22f4e55da80cc10c61 | |
| parent | ca18c1e40971df1cf796ec5862688d8e1873e76e (diff) | |
Add description in manufacture rest api
| -rw-r--r-- | indoteknik_api/models/x_manufactures.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_api/models/x_manufactures.py b/indoteknik_api/models/x_manufactures.py index 29f99063..19fdcb9c 100644 --- a/indoteknik_api/models/x_manufactures.py +++ b/indoteknik_api/models/x_manufactures.py @@ -13,6 +13,7 @@ class Manufactures(models.Model): } if with_detail: data_with_detail = { + 'description': manufacture.x_short_desc, 'banners': [ base_url + 'api/image/x_banner.banner/x_banner_image/' + str(x.id) for x in manufacture.x_manufactures_banners |
