This commit is contained in:
Martin Quarda 2024-10-13 16:08:52 +02:00
parent 4a144894cb
commit 813cf95677

View File

@ -352,7 +352,7 @@ def cart_add(request):
user = request.user
try:
cart = user.cart
except User.cart.RelatedObjectDoesNotExist:
except AttributeError:
cart = Cart(user=user)
cart.save()
try: