From e063a30a06caef9e4cda7afb5ef175b1c04b5e96 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 20 Oct 2024 20:28:09 +0100 Subject: Can now delete item from basket - if is only one item left, it is deleted along with the basket - if there are more than one, just that one is deleted - TODO needs proper handling of the confirmation page - it's not formatted. htmx? --- alphabetlearning/resources/views.py | 1 - 1 file changed, 1 deletion(-) (limited to 'alphabetlearning/resources') diff --git a/alphabetlearning/resources/views.py b/alphabetlearning/resources/views.py index 0aae929..c3d1bcd 100644 --- a/alphabetlearning/resources/views.py +++ b/alphabetlearning/resources/views.py @@ -129,7 +129,6 @@ def index(request): resource_list = [_extract_metadata_from_resource(r) for r in resource_objs] for r in resource_list: - # TODO test for this existing - it will fail if no cart try: cart_items = request.user.shoppingcart.items.all() if r.name in [r.resource.name for r in cart_items]: -- cgit v1.2.3