dict is dict (#54057)

pull/54061/head
Brian Coca 7 years ago committed by GitHub
parent 05bca95ab1
commit d1a688b1d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- allow 'dict()' jinja2 global to function the same even though it has changed in jinja2 versions

@ -690,6 +690,9 @@ class Templar:
else:
return data
# jinja2 global is inconsistent across versions, this normalizes them
t.globals['dict'] = dict
if disable_lookups:
t.globals['query'] = t.globals['q'] = t.globals['lookup'] = self._fail_lookup
else:

Loading…
Cancel
Save