From 8c359d2d3c3d3fe98cf8a54636b3e84f6f2acc08 Mon Sep 17 00:00:00 2001 From: william57m Date: Thu, 6 Nov 2014 09:50:55 -0500 Subject: [PATCH] add state in to_dict order --- webserver/models/order.py | 1 + 1 file changed, 1 insertion(+) diff --git a/webserver/models/order.py b/webserver/models/order.py index 921a5d4..50984f6 100644 --- a/webserver/models/order.py +++ b/webserver/models/order.py @@ -28,6 +28,7 @@ def to_dict(self, lines_order=True): my_dict['date'] = unicode(self.date) my_dict['created'] = unicode(self.created) my_dict['client'] = self.client.to_dict() if self.client else None + my_dict['state'] = self.state.to_dict() if self.state else None if lines_order: my_dict['lines_orders'] = [so.to_dict() for so in self.lines_order]