Ticket #3529: context_update.patch
File context_update.patch, 576 bytes (added by , 18 years ago) |
---|
-
django/template/context.py
60 60 61 61 def update(self, other_dict): 62 62 "Like dict.update(). Pushes an entire dictionary's keys and values onto the context." 63 self.dicts = [other_dict] + self.dicts63 self.dicts[0].update(other_dict) 64 64 65 65 # This is a function rather than module-level procedural code because we only 66 66 # want it to execute if somebody uses RequestContext.