diff --git a/conservancy/supporters/management/commands/export_stripe.py b/conservancy/supporters/management/commands/export_stripe.py index e6c0f606..86b1e9bc 100644 --- a/conservancy/supporters/management/commands/export_stripe.py +++ b/conservancy/supporters/management/commands/export_stripe.py @@ -10,7 +10,7 @@ class Command(BaseCommand): def handle(self, *args, **options): payments = SustainerPayment.objects.select_related('order').order_by('paid_time') - columns = ['order_time', 'payment_time', 'name', 'email', 'amount', 'transaction_id', 'public_ack', 'shirt_size', 'join_list', 'street', 'city', 'state', 'zip_code', 'country'] + columns = ['order_time', 'payment_time', 'name', 'email', 'amount', 'transaction_id', 'recurring', 'subscription_id', 'public_ack', 'shirt_size', 'join_list', 'street', 'city', 'state', 'zip_code', 'country'] writer = csv.writer(sys.stdout) writer.writerow(columns) for payment in payments: @@ -22,6 +22,8 @@ class Command(BaseCommand): order.email, payment.amount, payment.stripe_payment_intent_ref, + order.recurring, + order.stripe_subscription_ref, order.acknowledge_publicly, repr(order.tshirt_size if order.tshirt_size else ''), order.add_to_mailing_list,