1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #16096 -- Added origin attribute to template instances.

Thanks jdunck for the suggestion.
This commit is contained in:
Preston Timmons
2013-08-30 14:08:40 -05:00
committed by Tim Graham
parent e1266e50b2
commit 8625c7aab3
4 changed files with 54 additions and 1 deletions

View File

@@ -124,6 +124,7 @@ class Template(object):
origin = StringOrigin(template_string)
self.nodelist = compile_string(template_string, origin)
self.name = name
self.origin = origin
def __iter__(self):
for node in self.nodelist: