mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	fix error with anon connections and language check
This commit is contained in:
		@@ -548,7 +548,8 @@ class I18nStaticNode(StaticNode):
 | 
			
		||||
            # Store the original (un-rendered) path template, as it gets overwritten below
 | 
			
		||||
            self.original = self.path.var
 | 
			
		||||
 | 
			
		||||
        self.path.var = self.original.format(lng=context.request.LANGUAGE_CODE)
 | 
			
		||||
        if hasattr(context, 'request'):
 | 
			
		||||
            self.path.var = self.original.format(lng=context.request.LANGUAGE_CODE)
 | 
			
		||||
 | 
			
		||||
        ret = super().render(context)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user