From 63b3a939385dbf46e7b8588f97310d10dff313b6 Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Thu, 2 Oct 2025 17:13:24 +0300 Subject: [PATCH] Fixes: 1) Correct logical grouping in `personal_orders_only` property for clarity and accuracy; Extra: None; --- core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/models.py b/core/models.py index 9d5419de..dcce8b9e 100644 --- a/core/models.py +++ b/core/models.py @@ -599,7 +599,7 @@ class Product(ExportModelOperationsMixin("product"), NiceModel): # type: ignore @property def personal_orders_only(self) -> bool: - return not self.quantity > 0 and self.price > 0.0 + return not (self.quantity > 0 and self.price > 0.0) class Attribute(ExportModelOperationsMixin("attribute"), NiceModel): # type: ignore [misc, django-manager-missing]