Skip to content

Commit

Permalink
add state in to_dict order
Browse files Browse the repository at this point in the history
  • Loading branch information
william57m committed Nov 6, 2014
1 parent df2760f commit 8c359d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webserver/models/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 8c359d2

Please sign in to comment.