Re: template caching context variables when no caching enabled.

2012-12-18 Thread Chris Cogdon
Parameter 2 to "render_to_response" is only expecting a dictionary, not a Context/RequestContext, so, it will grab your 'dictionary-like object' and wrap it in its own Context, meaning that none of your template context processors will run (since those require a RequestContext) I suggest using

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