#7752: Context Processors get top of stack in RequestContext instances
-----------------------------+----------------------------------------------
Reporter: teepark | Owner: nobody
Status: new | Milestone:
Component: Template system | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
-----------------------------+----------------------------------------------
Currently, {{{RequestContext.__init__}}} applies context processors
''after'' updating from the provided dictionary. This should be the other
way around because context processors are so general in scope
(automatically applied to every {{{RequestContext}}} in the whole site).
{{{
d = {'anint': 7}
# this would get masked by any context processor that provides 'anint'
def myview(request):
return render_to_response("home.html",
context_instance=RequestContext(request, d))
# so this form would be necessary
def myview(request):
rc = RequestContext(request)
rc.update(d)
return render_to_response("home.html", context_instance=rc)
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/7752>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---