Mercurial > public > sg101
changeset 350:2177a71b680c
Fixing #173; display donors in order by date, ascending on the main view.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 02 Mar 2011 02:47:15 +0000 |
parents | a43add8af83d |
children | b783a555cd87 |
files | gpp/donations/models.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gpp/donations/models.py Wed Mar 02 02:34:57 2011 +0000 +++ b/gpp/donations/models.py Wed Mar 02 02:47:15 2011 +0000 @@ -30,7 +30,8 @@ qs = self.filter(payment_date__year=year, payment_date__month=month, - test_ipn=settings.DONATIONS_DEBUG).select_related('user') + test_ipn=settings.DONATIONS_DEBUG).order_by( + 'payment_date').select_related('user') gross = decimal.Decimal() net = decimal.Decimal()