diff gpp/donations/models.py @ 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 75ea1a8be7f2
children
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()