#25839: RequestContext does not apply context processors [regression] -------------------------------------+------------------------------------- Reporter: direx | Owner: nobody Type: Bug | Status: new Component: Template system | Version: 1.8 Severity: Normal | Resolution: Keywords: RequestContext, | Triage Stage: Accepted regression | Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by direx): By saying that this is not part of the public API or not a supported usage of `RequestContext` you are making this a little too easy for you. After looking at the Django 1.7 documentation these are facts: 1. `RequestContext` is a special `Context` class. One of the differences „''is that it automatically populates the context with a few variables, according to your `TEMPLATE_CONTEXT_PROCESSORS` setting.''“ (quote from documentation) 2. Another quote from the documentation: „''Most of the time, you’ll instantiate Context objects by passing in a fully-populated dictionary to Context(). But you can add and delete items from a Context object once it’s been instantiated, too, using standard dictionary syntax''“. Note the '''standard dictionary syntax''' here. So I don't see why the behavior described in this bug should not be considered part of the public API. The ''usage as dictionary'' is actually even documented and encouraged (also in 1.8, section ''Playing with Context objects''). So I'd still consider this a public API breakage. -- Ticket URL: <https://code.djangoproject.com/ticket/25839#comment:4> Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/063.c7218023a1d2e86ceb5929d5745802ed%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.