mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add admin interface for PartParameter
This commit is contained in:
parent
1cd0051316
commit
0955166fae
@ -4,6 +4,7 @@ from import_export.admin import ImportExportModelAdmin
|
||||
from .models import PartCategory, Part
|
||||
from .models import PartAttachment, PartStar
|
||||
from .models import BomItem
|
||||
from .models import PartParameter
|
||||
|
||||
|
||||
class PartAdmin(ImportExportModelAdmin):
|
||||
@ -33,14 +34,15 @@ class BomItemAdmin(ImportExportModelAdmin):
|
||||
"""
|
||||
class ParameterTemplateAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'units', 'format')
|
||||
|
||||
"""
|
||||
|
||||
class ParameterAdmin(admin.ModelAdmin):
|
||||
list_display = ('part', 'template', 'value')
|
||||
"""
|
||||
list_display = ('part', 'name', 'data')
|
||||
|
||||
|
||||
admin.site.register(Part, PartAdmin)
|
||||
admin.site.register(PartCategory, PartCategoryAdmin)
|
||||
admin.site.register(PartAttachment, PartAttachmentAdmin)
|
||||
admin.site.register(PartStar, PartStarAdmin)
|
||||
admin.site.register(BomItem, BomItemAdmin)
|
||||
admin.site.register(PartParameter, ParameterAdmin)
|
||||
|
Loading…
Reference in New Issue
Block a user