From dd40a17c9a011200ef331e035ad7c7e0c17d4af3 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 31 Dec 2011 16:07:26 +0530 Subject: [PATCH] return item url --- pandora/archive/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/views.py b/pandora/archive/views.py index ae769cb4d..1738435c2 100644 --- a/pandora/archive/views.py +++ b/pandora/archive/views.py @@ -209,8 +209,8 @@ def firefogg_upload(request): f.uploading = True f.save() response = { - #is it possible to no hardcode url here? 'uploadUrl': request.build_absolute_uri('/api/upload/?id=%s&profile=%s' % (f.oshash, profile)), + 'url': request.build_absolute_uri('/%s/files' % f.item.itemId), 'result': 1 } return render_to_json_response(response)