Skip to content

Commit

Permalink
список покупок снова скачивается
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebraHr committed Sep 26, 2023
1 parent 53dee6b commit a98a83f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def download_shopping_cart(self, request):
user = request.user
buffer = io.BytesIO()
ingredients = IngredientAmount.objects.filter(
recipe__shopping_cart__user=user).values(
recipe__recipe_shopping_cart__user=user).values(
'ingredient__name', 'ingredient__measurement_unit').annotate(
amount=Sum('amount'))
shopping_list = ([f'{i["ingredient__name"]}'
Expand Down

0 comments on commit a98a83f

Please sign in to comment.