summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-05-19 07:15:49 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-05-20 08:10:50 (GMT)
commitd4f858b83078c90a6f9cda4b3bc36203affd8bb1 (patch)
tree003caf27fb29bdd0bef7c751bc0974aaf9a26366
parent43f25b588f468bf38d1d28c2710985b73d281664 (diff)
downloadcombo-d4f858b83078c90a6f9cda4b3bc36203affd8bb1.zip
combo-d4f858b83078c90a6f9cda4b3bc36203affd8bb1.tar.gz
combo-d4f858b83078c90a6f9cda4b3bc36203affd8bb1.tar.bz2
misc: give redirect_url access to request(.user) (#33235)
-rw-r--r--combo/public/views.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/combo/public/views.py b/combo/public/views.py
index c23b112..a14779c 100644
--- a/combo/public/views.py
+++ b/combo/public/views.py
@@ -445,8 +445,10 @@ def publish_page(request, page, status=200, template_name=None):
raise PermissionDenied()
if page.redirect_url:
+ context = {'request': request}
+ context.update(request.extra_context_data or {})
try:
- redirect_url = page.get_redirect_url(context=request.extra_context_data)
+ redirect_url = page.get_redirect_url(context=context)
except utils.TemplateError:
raise Http404("combo: can't compute redirect URL (template error).")
if redirect_url: