From 7c0d07aad4da6c36d0014c8ae7ce67db21be56a9 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sat, 9 Jul 2022 12:09:11 +0200 Subject: fix "Invalidate Share" action After the change to pyramid contexts, this parameter is now track_id. This was missed back then. --- fietsboek/views/detail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fietsboek/views/detail.py b/fietsboek/views/detail.py index d035a85..5d969e7 100644 --- a/fietsboek/views/detail.py +++ b/fietsboek/views/detail.py @@ -53,7 +53,7 @@ def invalidate_share(request): """ track = request.context track.link_secret = util.random_alphanum_string() - return HTTPFound(request.route_url('details', id=track.id)) + return HTTPFound(request.route_url('details', track_id=track.id)) @view_config(route_name='badge', http_cache=3600) -- cgit v1.2.3