use mobileclient.set_user_data() whenever needed/possible
This commit is contained in:
parent
84d849413e
commit
a7f0717869
10 changed files with 54 additions and 14 deletions
|
@ -56,6 +56,8 @@ def sidebar_view(func=None, select_related=None, api_hybrid=False):
|
|||
return render(request, 'editor/redirect.html', {'target': response['location']})
|
||||
if not isinstance(response, HttpResponseNotModified):
|
||||
response.write(render(request, 'editor/fragment_nav.html', {}).content)
|
||||
if request.mobileclient:
|
||||
response.write(render(request, 'editor/fragment_mobileclientdata.html', {}).content)
|
||||
response['Cache-Control'] = 'no-cache'
|
||||
patch_vary_headers(response, ('X-Requested-With', ))
|
||||
return response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue