django-orchestra/orchestra/apps/payments/actions.py

5 lines
193 B
Python
Raw Normal View History

def process_transactions(modeladmin, request, queryset):
2014-09-04 15:55:43 +00:00
for source, transactions in queryset.group_by('source'):
if source:
source.method_class().process(transactions)