diff --git a/core/signals.py b/core/signals.py index 02591b83..2fd94ab0 100644 --- a/core/signals.py +++ b/core/signals.py @@ -92,10 +92,7 @@ def process_order_changes(instance, created, **_kwargs): if not instance.is_whole_digital: send_order_created_email.delay(instance.uuid) - for order_product in instance.order_products.filter(status="DELIVERING"): - if not order_product.product.is_digital: - continue - + for order_product in instance.order_products.filter(status="DELIVERING", product__is_digital=True): try: logger.debug("Trying to buy: %s", str(order_product.uuid)) vendor_name = (