Fixes: 1) Correct logical grouping in personal_orders_only property for clarity and accuracy;

Extra: None;
This commit is contained in:
Egor Pavlovich Gorbunov 2025-10-02 17:13:24 +03:00
parent a344014d9f
commit 63b3a93938

View file

@ -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]