fixed shopping list headers #78

This commit is contained in:
vabene1111
2020-06-01 23:23:46 +02:00
parent 6aedba09f3
commit 821136787d

View File

@@ -196,7 +196,7 @@ def shopping_list(request):
ingredients = []
for r in recipes:
for ri in RecipeIngredient.objects.filter(recipe=r).all():
for ri in RecipeIngredient.objects.filter(recipe=r).exclude(unit__name__contains='Special:').all():
index = None
for x, ig in enumerate(ingredients):
if ri.ingredient == ig.ingredient and ri.unit == ig.unit: