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]