Ticket #2744: context-processor-returns-none.patch

File context-processor-returns-none.patch, 470 bytes (added by anonymous, 18 years ago)

my patch to fix it

  • template/context.py

     
    9494        else:
    9595            processors = tuple(processors)
    9696        for processor in get_standard_processors() + processors:
    97             self.update(processor(request))
     97            new_data = processor(request)
     98            if new_data:
     99                self.update(new_data)
Back to Top