Skip to content

Commit

Permalink
request
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav committed Jan 24, 2025
1 parent 458e03a commit cc9cff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecommerce/views/v0/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def cart(self, request):
url_name="basket_items_count",
)
def basket_items_count(self, request):
basket, _ = Basket.objects.get_or_create(user=self.request.user)
basket, _ = Basket.objects.get_or_create(user=request.user)

return Response(basket.basket_items.count())

Expand Down

0 comments on commit cc9cff8

Please sign in to comment.