mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-03 09:00:57 +00:00
Adds tabular inline class for ManufacturerPartParameter
- Super cool!
This commit is contained in:
1 parent
3fcb552759
commit
8188ba86a7
1 file changed
+13
@@ -92,6 +92,15 @@ class ManufacturerPartResource(ModelResource):
|
|||||||
clean_model_instances = True
|
clean_model_instances = True
|
||||||
|
|
||||||
|
|
||||||
|
class ManufacturerPartParameterInline(admin.TabularInline):
|
||||||
|
"""
|
||||||
|
Inline for editing ManufacturerPartParameter objects,
|
||||||
|
directly from the ManufacturerPart admin view.
|
||||||
|
"""
|
||||||
|
|
||||||
|
model = ManufacturerPartParameter
|
||||||
|
|
||||||
|
|
||||||
class ManufacturerPartAdmin(ImportExportModelAdmin):
|
class ManufacturerPartAdmin(ImportExportModelAdmin):
|
||||||
"""
|
"""
|
||||||
Admin class for ManufacturerPart model
|
Admin class for ManufacturerPart model
|
||||||
@@ -107,6 +116,10 @@ class ManufacturerPartAdmin(ImportExportModelAdmin):
|
|||||||
'MPN',
|
'MPN',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
inlines = [
|
||||||
|
ManufacturerPartParameterInline
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class ManufacturerPartParameterResource(ModelResource):
|
class ManufacturerPartParameterResource(ModelResource):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in new issue
Block a user