Ticket #3529: context_update.patch

File context_update.patch, 576 bytes (added by Chris Beaven, 17 years ago)
  • django/template/context.py

     
    6060
    6161    def update(self, other_dict):
    6262        "Like dict.update(). Pushes an entire dictionary's keys and values onto the context."
    63         self.dicts = [other_dict] + self.dicts
     63        self.dicts[0].update(other_dict)
    6464
    6565# This is a function rather than module-level procedural code because we only
    6666# want it to execute if somebody uses RequestContext.
Back to Top