Merge branch 'payment' of github.com:Gluejar/regluit into payment

pull/1/head
Raymond Yee 2011-12-21 23:12:39 +00:00
commit e0d892f14b
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@ def drop_all_transactions():
c.left = c.target
c.save()
def recipient_status(clist):
return [[[r.status for r in t.receiver_set.all()] for t in c.transaction_set.all()] for c in clist]
# by the time we've executed a campaign, we should have r.status = 'COMPLETED' for primary but None for secondary
# [[[r.status for r in t.receiver_set.all()] for t in c.transaction_set.all()] for c in campaigns_incomplete()]