Rendering complex template objects to leave non-template values alone (#29353)
This commit is contained in:
parent
b1b784484e
commit
eef91f843d
4 changed files with 18 additions and 4 deletions
|
@ -489,8 +489,9 @@ def template_complex(value):
|
|||
for key, element in return_value.items():
|
||||
return_value[key] = template_complex(element)
|
||||
return return_value
|
||||
|
||||
return template(value)
|
||||
if isinstance(value, str):
|
||||
return template(value)
|
||||
return value
|
||||
|
||||
|
||||
def datetime(value):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue