From 56e33474dcfbe43ee8b33ccf814e61a9d4ceb533 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Sat, 7 Jun 2025 17:21:15 +0300 Subject: [PATCH] Fixes: buy_without_registration... --- core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/models.py b/core/models.py index dee8a8cc..30a6ff03 100644 --- a/core/models.py +++ b/core/models.py @@ -736,7 +736,7 @@ class Order(ExportModelOperationsMixin("order"), NiceModel): ) payment_method = kwargs.get("payment_method") - available_payment_methods = cache.get("payment_methods") + available_payment_methods = cache.get("payment_methods").get("payment_methods") if payment_method not in available_payment_methods: raise ValueError(_(f"invalid payment method: {payment_method} from {available_payment_methods}"))