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
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
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
3 matches
Mail list logo