diff --git a/plans_payments/models.py b/plans_payments/models.py index 777487a..5c115d8 100644 --- a/plans_payments/models.py +++ b/plans_payments/models.py @@ -197,7 +197,9 @@ def change_payment_status(sender, *args, **kwargs): ): order.status = Order.STATUS.CANCELED # In case django-simples-history is installed - order._change_reason = f"Django-plans-payments: Payment status changed to {payment.status}" + order._change_reason = ( + f"Django-plans-payments: Payment status changed to {payment.status}" + ) order.save() if hasattr(order.user.userplan, "recurring"): order.user.userplan.recurring.token_verified = False