Ticket #16004: 16004.fix.diff

File 16004.fix.diff, 795 bytes (added by Luke Plant, 13 years ago)

Fix

  • django/utils/decorators.py

    diff -r 128c90a7b280 -r 9a6a9d2ca28f django/utils/decorators.py
    a b  
    9595                        if result is not None:
    9696                            return result
    9797                    raise
     98                if hasattr(response, 'render') and callable(response.render):
     99                    if hasattr(middleware, 'process_template_response'):
     100                        response = middleware.process_template_response(request, response)
     101                    response.render()
    98102                if hasattr(middleware, 'process_response'):
    99103                    result = middleware.process_response(request, response)
    100104                    if result is not None:
Back to Top