From fec071ed428809c403900f1cd2241d152db4294a Mon Sep 17 00:00:00 2001 From: Didrik Munther Date: Sun, 4 Aug 2024 23:19:00 +0200 Subject: [PATCH] Deactivate package parent checking --- dashboard/api/registration/response.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dashboard/api/registration/response.py b/dashboard/api/registration/response.py index e81da739..3655f45f 100644 --- a/dashboard/api/registration/response.py +++ b/dashboard/api/registration/response.py @@ -54,12 +54,12 @@ def order_is_allowed(fair, company): print("No package") return False - for order in orders: - parent_products = order.product.specificproduct_set.all() + # for order in orders: + # parent_products = order.product.specificproduct_set.all() - if parent_products.count() > 0 and not package in parent_products: - print(order.product, parent_products, "Parent not in package") - return False + # if parent_products.count() > 0 and not package in parent_products: + # print(order.product, parent_products, "Parent not in package") + # return False return True