mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Improvements for global settings
- Name and description are defined in models.py - Lookup functions for name / description / units / default - Shortcut template for rending settings - More unit testing
This commit is contained in:
		@@ -42,7 +42,7 @@ function loadBuildTable(table, options) {
 | 
			
		||||
                switchable: false,
 | 
			
		||||
                formatter: function(value, row, index, field) {
 | 
			
		||||
 | 
			
		||||
                    var prefix = "{% inventree_setting 'BUILDORDER_REFERENCE_PREFIX' %}";
 | 
			
		||||
                    var prefix = "{% settings_value 'BUILDORDER_REFERENCE_PREFIX' %}";
 | 
			
		||||
 | 
			
		||||
                    if (prefix) {
 | 
			
		||||
                        value = `${prefix}${value}`;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user