From 3da9368c9c4b2ecf6a0ac9687f7c0582554fd7ab Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Wed, 3 Dec 2025 09:31:23 +0330 Subject: [PATCH] fix - return none on get stat on quota --- apps/product/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/product/models.py b/apps/product/models.py index 51ecf47..a8342cf 100644 --- a/apps/product/models.py +++ b/apps/product/models.py @@ -547,7 +547,7 @@ class Quota(BaseModel): organization=org ) # first quota created is none stat on attribute & broker value table - if stat.stat_type == 'quota': + if stat.first().stat_type == 'quota': return None return stat.first() if stat.exists() else None