mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Adds inline for SupplierPart
This commit is contained in:
parent
8188ba86a7
commit
0013eb4c23
@ -101,6 +101,14 @@ class ManufacturerPartParameterInline(admin.TabularInline):
|
||||
model = ManufacturerPartParameter
|
||||
|
||||
|
||||
class SupplierPartInline(admin.TabularInline):
|
||||
"""
|
||||
Inline for the SupplierPart model
|
||||
"""
|
||||
|
||||
model = SupplierPart
|
||||
|
||||
|
||||
class ManufacturerPartAdmin(ImportExportModelAdmin):
|
||||
"""
|
||||
Admin class for ManufacturerPart model
|
||||
@ -117,7 +125,8 @@ class ManufacturerPartAdmin(ImportExportModelAdmin):
|
||||
]
|
||||
|
||||
inlines = [
|
||||
ManufacturerPartParameterInline
|
||||
SupplierPartInline,
|
||||
ManufacturerPartParameterInline,
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user