mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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
|
||||
|
||||
|
||||
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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user