From dafa2d5eb2da4bde4dbd42e1dbc39f80f06f1a97 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 29 Jun 2026 15:30:14 +0800 Subject: [PATCH] fix: request._run_ns.params_kw --- discount/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discount/init.py b/discount/init.py index c34e4bb..4eb29ff 100644 --- a/discount/init.py +++ b/discount/init.py @@ -739,7 +739,7 @@ async def get_discount_setting_products(request): Used in Jinja2 template: {% set products = get_discount_setting_products(request) %} """ env = request._run_ns - discountid = (request._params_kw or {}).get('discountid', '') + discountid = (request._run_ns.params_kw or {}).get('discountid', '') user_orgid = await env.get_userorgid() if not discountid or not user_orgid: