mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	template tag for dict-reading
This commit is contained in:
		| @@ -162,6 +162,11 @@ def get_color_theme_css(username): | ||||
|     return inventree_css_static_url | ||||
|  | ||||
|  | ||||
| @register.filter | ||||
| def keyvalue(dict, key): | ||||
|     return dict[key] | ||||
|  | ||||
|  | ||||
| @register.simple_tag() | ||||
| def authorized_owners(group): | ||||
|     """ Return authorized owners """ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user