I realize this post is a bit old now. But I believe you could resolve
this issue by adding @vary_on_cookie like so:
@login_required
@vary_on_cookie
def webapp(request):
...
You'll want to test it, of course, but that should create a different
cache for each user (since session info is stored
i don't know if the cache work for views with the content dependent from
user...
example.
@login_required
def webapp(request):
grupos = Grupo.objects.filter(usuarios = request.user).order_by('grupo')
return
render_to_response('accounting/webapp.html',{'grupos':grupos},RequestContext
2 matches
Mail list logo