Ticket #15070: 15070.diff

File 15070.diff, 790 bytes (added by raony araújo, 14 years ago)
  • django/template/base.py

     
    927927                        else:
    928928                            t = get_template(file_name)
    929929                        self.nodelist = t.nodelist
    930                     new_context = context_class(dict, autoescape=context.autoescape)
     930                    new_context = context_class(dict, autoescape=context.autoescape, current_app=context.current_app)
    931931                    # Copy across the CSRF token, if present, because inclusion
    932932                    # tags are often used for forms, and we need instructions
    933933                    # for using CSRF protection to be as simple as possible.
Back to Top