From 56974ce30fd4aa8b79a7e4d641d1b499cd7a4689 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 29 Aug 2019 20:57:20 -0500 Subject: [PATCH] Tweak return value for /customers API --- tailbone/api/customers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tailbone/api/customers.py b/tailbone/api/customers.py index bc10504a..ddca770c 100644 --- a/tailbone/api/customers.py +++ b/tailbone/api/customers.py @@ -26,6 +26,8 @@ Tailbone Web API - Customer Views from __future__ import unicode_literals, absolute_import +import six + from rattail.db import model from cornice.resource import resource, view @@ -41,6 +43,7 @@ class CustomerView(APIMasterView): def normalize(self, customer): return { 'uuid': customer.uuid, + '_str': six.text_type(customer), 'id': customer.id, 'name': customer.name, }