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:
committed by
Tim Graham
parent
e1266e50b2
commit
8625c7aab3
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user