Skip to content

Commit

Permalink
Merge pull request spiral-project#162 from zorun/order_bills
Browse files Browse the repository at this point in the history
Sort bills by (date.desc, ID.desc) instead of just date.desc
  • Loading branch information
almet authored Jan 16, 2017
2 parents aaa0ca7 + 925d936 commit a961574
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion budget/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def get_bills(self):
.filter(Bill.payer_id == Person.id)\
.filter(Person.project_id == Project.id)\
.filter(Project.id == self.id)\
.order_by(Bill.date.desc())
.order_by(Bill.date.desc())\
.order_by(Bill.id.desc())

def remove_member(self, member_id):
"""Remove a member from the project.
Expand Down

0 comments on commit a961574

Please sign in to comment.