mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 21:25:42 +00:00 
			
		
		
		
	Adds tabular inline class for ManufacturerPartParameter
- Super cool!
This commit is contained in:
		| @@ -92,6 +92,15 @@ class ManufacturerPartResource(ModelResource): | ||||
|         clean_model_instances = True | ||||
|  | ||||
|  | ||||
| class ManufacturerPartParameterInline(admin.TabularInline): | ||||
|     """ | ||||
|     Inline for editing ManufacturerPartParameter objects, | ||||
|     directly from the ManufacturerPart admin view. | ||||
|     """ | ||||
|  | ||||
|     model = ManufacturerPartParameter | ||||
|  | ||||
|  | ||||
| class ManufacturerPartAdmin(ImportExportModelAdmin): | ||||
|     """ | ||||
|     Admin class for ManufacturerPart model | ||||
| @@ -107,6 +116,10 @@ class ManufacturerPartAdmin(ImportExportModelAdmin): | ||||
|         'MPN', | ||||
|     ] | ||||
|  | ||||
|     inlines = [ | ||||
|         ManufacturerPartParameterInline | ||||
|     ] | ||||
|  | ||||
|  | ||||
| class ManufacturerPartParameterResource(ModelResource): | ||||
|     """ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user