aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/user_pages/views.py
diff options
context:
space:
mode:
authorRodney Ewing <ewing.rj@gmail.com>2013-08-19 14:33:07 -0700
committerRodney Ewing <ewing.rj@gmail.com>2013-08-19 14:33:07 -0700
commitbd0b5daa44691c8cf72ef2ff5a8cdc3b01490722 (patch)
tree5bb34fcd88d2f04b002097944533f67c5cd5bddb /mediagoblin/user_pages/views.py
parente7b8059f17c98ee88d933af52b0c4d858e882e8e (diff)
downloadmediagoblin-bd0b5daa44691c8cf72ef2ff5a8cdc3b01490722.tar.lz
mediagoblin-bd0b5daa44691c8cf72ef2ff5a8cdc3b01490722.tar.xz
mediagoblin-bd0b5daa44691c8cf72ef2ff5a8cdc3b01490722.zip
-skip persona test is requests is not installed
- should use request.urlgen for location
Diffstat (limited to 'mediagoblin/user_pages/views.py')
-rw-r--r--mediagoblin/user_pages/views.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py
index 9d3cb08b..49691a29 100644
--- a/mediagoblin/user_pages/views.py
+++ b/mediagoblin/user_pages/views.py
@@ -305,8 +305,9 @@ def media_confirm_delete(request, media):
if not location:
location=media.url_to_prev(request.urlgen)
if not location:
- location="mediagoblin.user_pages.user_home"
- return redirect(request, location=location, user=username)
+ location=request.urlgen("mediagoblin.user_pages.user_home",
+ user=username)
+ return redirect(request, location=location)
else:
messages.add_message(
request, messages.ERROR,