Adds inline for SupplierPart

This commit is contained in:
Oliver 2021-06-21 00:03:16 +10:00
parent 8188ba86a7
commit 0013eb4c23

View File

@ -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,
]