mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Ensure template string is cached (#6027)
This commit is contained in:
		@@ -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:
 | 
					    if template_string == _part_full_name_template_string and _part_full_name_template is not None:
 | 
				
			||||||
        return _part_full_name_template
 | 
					        return _part_full_name_template
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Cache the template string
 | 
				
			||||||
 | 
					    _part_full_name_template_string = template_string
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    env = Environment(
 | 
					    env = Environment(
 | 
				
			||||||
        autoescape=select_autoescape(default_for_string=False, default=False),
 | 
					        autoescape=select_autoescape(default_for_string=False, default=False),
 | 
				
			||||||
        variable_start_string='{{',
 | 
					        variable_start_string='{{',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user