mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 04:56:45 +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
|
model = ManufacturerPartParameter
|
||||||
|
|
||||||
|
|
||||||
|
class SupplierPartInline(admin.TabularInline):
|
||||||
|
"""
|
||||||
|
Inline for the SupplierPart model
|
||||||
|
"""
|
||||||
|
|
||||||
|
model = SupplierPart
|
||||||
|
|
||||||
|
|
||||||
class ManufacturerPartAdmin(ImportExportModelAdmin):
|
class ManufacturerPartAdmin(ImportExportModelAdmin):
|
||||||
"""
|
"""
|
||||||
Admin class for ManufacturerPart model
|
Admin class for ManufacturerPart model
|
||||||
@ -117,7 +125,8 @@ class ManufacturerPartAdmin(ImportExportModelAdmin):
|
|||||||
]
|
]
|
||||||
|
|
||||||
inlines = [
|
inlines = [
|
||||||
ManufacturerPartParameterInline
|
SupplierPartInline,
|
||||||
|
ManufacturerPartParameterInline,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user