flash when shop location is switched.
This commit is contained in:
parent
f218e30ad9
commit
6055eed135
1 changed files with 1 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue