Templates caching context when it shouldn't

2012-12-18 Thread John Tipton
I've got the following function that I include in my views to set context variables: http://dpaste.org/FIZnG/. Occasionally my templates start caching these variables, no matter what model my views are based on. I do not have any caching enabled as far as I know, and the console prints the

template caching context variables when no caching enabled.

2012-12-18 Thread John Tipton
I've got the following function that I include in my views to set context variables. Occasionally my templates start caching these variables, no matter what model my views are based on. def set_context_vars(context, model, request=None): """ Set Extra Context Variables """ pr

Re: template caching context variables when no caching enabled.

2012-12-18 Thread John Tipton
I believe I may have solved it, this is the view that kept causing it to happen: def document_revert(request, pk): version = get_object_or_404(reversion.models.Version, pk=pk) document_version = version.object_version.object context = RequestContext(request, {'document': document_versi