Ticket #15070: 15070.diff
File 15070.diff, 790 bytes (added by , 14 years ago) |
---|
-
django/template/base.py
927 927 else: 928 928 t = get_template(file_name) 929 929 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) 931 931 # Copy across the CSRF token, if present, because inclusion 932 932 # tags are often used for forms, and we need instructions 933 933 # for using CSRF protection to be as simple as possible.