mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
Adds tabular inline class for ManufacturerPartParameter
- Super cool!
This commit is contained in:
parent
3fcb552759
commit
8188ba86a7
@ -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):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user