From 06bfa2c7674cadcfa5f1fcf88b8e3a8105e16cc5 Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Wed, 9 Dec 2015 14:52:46 +0000 Subject: [PATCH] Fixed payment transaction bug action --- orchestra/contrib/payments/actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orchestra/contrib/payments/actions.py b/orchestra/contrib/payments/actions.py index d2d0652a..26e55d2e 100644 --- a/orchestra/contrib/payments/actions.py +++ b/orchestra/contrib/payments/actions.py @@ -113,10 +113,10 @@ def _format_display_objects(modeladmin, request, queryset, related): ) subobjects = [] attr, verb = related - for related in getattr(obj.transactions, attr)(): + for trans in getattr(obj.transactions, attr)(): subobjects.append( mark_safe('Transaction: {} will be marked as {}'.format( - change_url(related), related, verb)) + change_url(trans), trans, verb)) ) objects.append(subobjects) return {'display_objects': objects}