From 6055eed135875f56d24850c4d2cb5e0163f01e4b Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Sat, 8 Jun 2024 19:43:44 -0400 Subject: [PATCH] flash when shop location is switched. --- make_post_sell/views/shop_location.py | 1 + 1 file changed, 1 insertion(+) diff --git a/make_post_sell/views/shop_location.py b/make_post_sell/views/shop_location.py index 832c30d..3de6662 100644 --- a/make_post_sell/views/shop_location.py +++ b/make_post_sell/views/shop_location.py @@ -185,6 +185,7 @@ def shop_location_switch(request): # Update the session with the selected location request.session["current_shop_location"] = str(location.id) + request.session.flash((f"You are now viewing the {location.name} shop location", "success")) # Redirect to the shop home page return HTTPFound(request.route_url("shop", shop_id=shop_id))