flash when shop location is switched.

This commit is contained in:
Russell Ballestrini 2024-06-08 19:43:44 -04:00
parent f218e30ad9
commit 6055eed135

View file

@ -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))