aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-07-09 12:09:11 +0200
committerDaniel Schadt <kingdread@gmx.de>2022-07-09 12:09:11 +0200
commit7c0d07aad4da6c36d0014c8ae7ce67db21be56a9 (patch)
tree172d9ff9156e54d634fa2b8e1a6c0fb178074f58
parent13d4b0cf3cd3ea544fd8ff504cf2c58420b8e2d8 (diff)
downloadfietsboek-7c0d07aad4da6c36d0014c8ae7ce67db21be56a9.tar.gz
fietsboek-7c0d07aad4da6c36d0014c8ae7ce67db21be56a9.tar.bz2
fietsboek-7c0d07aad4da6c36d0014c8ae7ce67db21be56a9.zip
fix "Invalidate Share" action
After the change to pyramid contexts, this parameter is now track_id. This was missed back then.
-rw-r--r--fietsboek/views/detail.py2
1 files changed, 1 insertions, 1 deletions
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)