dict is dict (#54057)

(cherry picked from commit d1a688b1d7)
pull/54352/head
Brian Coca 6 years ago committed by Toshio Kuratomi
parent 9173941100
commit 6e4c344a6b

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

@ -726,6 +726,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