mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #29617 -- Fixed Template crash if template_string is lazy.
Regression in 3a148f958d.
This commit is contained in:
committed by
Tim Graham
parent
4198445afc
commit
9f3b9ffd51
@@ -152,7 +152,7 @@ class Template:
|
||||
self.name = name
|
||||
self.origin = origin
|
||||
self.engine = engine
|
||||
self.source = template_string
|
||||
self.source = str(template_string) # May be lazy.
|
||||
self.nodelist = self.compile_nodelist()
|
||||
|
||||
def __iter__(self):
|
||||
|
||||
Reference in New Issue
Block a user