Fixes: 1) Correct logical grouping in personal_orders_only property for clarity and accuracy;
Extra: None;
This commit is contained in:
parent
a344014d9f
commit
63b3a93938
1 changed files with 1 additions and 1 deletions
|
|
@ -599,7 +599,7 @@ class Product(ExportModelOperationsMixin("product"), NiceModel): # type: ignore
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def personal_orders_only(self) -> bool:
|
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]
|
class Attribute(ExportModelOperationsMixin("attribute"), NiceModel): # type: ignore [misc, django-manager-missing]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue