From 9191d1ae219540371cf6c6b6d25cc320c19b9e57 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 16 Apr 2018 20:46:21 +1000 Subject: [PATCH] PEP fixes --- InvenTree/stock/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)