mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Ensure template string is cached (#6027)
This commit is contained in:
parent
025cc47b81
commit
c3acb1753e
@ -32,6 +32,9 @@ def compile_full_name_template(*args, **kwargs):
|
||||
if template_string == _part_full_name_template_string and _part_full_name_template is not None:
|
||||
return _part_full_name_template
|
||||
|
||||
# Cache the template string
|
||||
_part_full_name_template_string = template_string
|
||||
|
||||
env = Environment(
|
||||
autoescape=select_autoescape(default_for_string=False, default=False),
|
||||
variable_start_string='{{',
|
||||
|
Loading…
Reference in New Issue
Block a user