diff --git a/core/models.py b/core/models.py index feb21079..6a02fcca 100644 --- a/core/models.py +++ b/core/models.py @@ -406,9 +406,7 @@ class Product(ExportModelOperationsMixin("product"), NiceModel): @property def total_orders(self): - return OrderProduct.objects.filter( - order__status="FINISHED", product__uuid=self.uuid - ).count() + return OrderProduct.objects.filter(product__uuid=self.uuid).count() class Attribute(ExportModelOperationsMixin("attribute"), NiceModel):