diff --git a/InvenTree/stock/admin.py b/InvenTree/stock/admin.py index a3e5c188f4..b8d55d44c7 100644 --- a/InvenTree/stock/admin.py +++ b/InvenTree/stock/admin.py @@ -4,6 +4,7 @@ from simple_history.admin import SimpleHistoryAdmin from .models import StockLocation, StockItem from .models import StockItemTracking + class LocationAdmin(admin.ModelAdmin): list_display = ('name', 'pathstring', 'description') @@ -15,6 +16,7 @@ class StockItemAdmin(SimpleHistoryAdmin): class StockTrackingAdmin(admin.ModelAdmin): list_display = ('item', 'date', 'title') + admin.site.register(StockLocation, LocationAdmin) admin.site.register(StockItem, StockItemAdmin) -admin.site.register(StockItemTracking, StockTrackingAdmin) \ No newline at end of file +admin.site.register(StockItemTracking, StockTrackingAdmin)