Skip to content

Commit

Permalink
small sorting change
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 23, 2016
1 parent 72f7145 commit 670c16d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/budy/models/bag.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ class Bag(bundle.Bundle):
def list_names(cls):
return ["id", "key", "currency", "total", "account"]

@classmethod
def order_name(self):
return ["id", -1]

@classmethod
def line_cls(cls):
return bag_line.BagLine
Expand Down
4 changes: 4 additions & 0 deletions src/budy/models/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ def __init__(self, *args, **kwargs):
def list_names(cls):
return ["id", "currency", "total", "account", "status"]

@classmethod
def order_name(self):
return ["id", -1]

@classmethod
def line_cls(cls):
return order_line.OrderLine
Expand Down

0 comments on commit 670c16d

Please sign in to comment.