We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f3b049 + e310203 commit 9c1e63cCopy full SHA for 9c1e63c
bakeup/shop/models.py
@@ -200,7 +200,7 @@ def create_template_orders(self, request):
200
201
def get_ingredient_summary_list(self):
202
ingredients = {}
203
- for production_plan in self.production_plans.filter(parent_plan__isnull=True):
+ for production_plan in self.production_plans.filter(parent_plan__isnull=True).exclude(state=ProductionPlan.State.CANCELED):
204
for child in ProductionPlan.objects.filter(
205
Q(parent_plan=production_plan) |
206
Q(parent_plan__parent_plan=production_plan) |
0 commit comments