return item url

This commit is contained in:
j 2011-12-31 16:07:26 +05:30
parent 252eadb0f3
commit dd40a17c9a

View file

@ -209,8 +209,8 @@ def firefogg_upload(request):
f.uploading = True f.uploading = True
f.save() f.save()
response = { response = {
#is it possible to no hardcode url here?
'uploadUrl': request.build_absolute_uri('/api/upload/?id=%s&profile=%s' % (f.oshash, profile)), '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 'result': 1
} }
return render_to_json_response(response) return render_to_json_response(response)