Skip to content

Commit

Permalink
Deactivate package parent checking
Browse files Browse the repository at this point in the history
  • Loading branch information
didrikmunther committed Aug 4, 2024
1 parent 284d5f1 commit fec071e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dashboard/api/registration/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fec071e

Please sign in to comment.