comparison gpp/donations/models.py @ 65:9fabeabd89d4

Donations: cleaned up logging. Use settings.DONATIONS_DEBUG to decide how to filter on test_ipn records.
author Brian Neal <bgneal@gmail.com>
date Sat, 27 Jun 2009 21:56:56 +0000
parents f77a1cdd7a46
children 75ea1a8be7f2
comparison
equal deleted inserted replaced
64:58bc950c6d8b 65:9fabeabd89d4
28 if month is None: 28 if month is None:
29 month = today.month 29 month = today.month
30 30
31 qs = self.filter(payment_date__year=year, 31 qs = self.filter(payment_date__year=year,
32 payment_date__month=month, 32 payment_date__month=month,
33 test_ipn=False).select_related('user') 33 test_ipn=settings.DONATIONS_DEBUG).select_related('user')
34 34
35 gross = decimal.Decimal() 35 gross = decimal.Decimal()
36 net = decimal.Decimal() 36 net = decimal.Decimal()
37 donations = [] 37 donations = []
38 for donation in qs: 38 for donation in qs: