InvenTree/InvenTree/stock/admin.py
Oliver Walters 7478371d0c Added stockhistory
using django-simple-history
2017-04-21 23:47:04 +10:00

17 lines
439 B
Python

from django.contrib import admin
from simple_history.admin import SimpleHistoryAdmin
from .models import StockLocation, StockItem
class LocationAdmin(admin.ModelAdmin):
list_display = ('name', 'path', 'description')
class StockItemAdmin(SimpleHistoryAdmin):
list_display = ('part', 'quantity', 'location', 'status', 'updated')
admin.site.register(StockLocation, LocationAdmin)
admin.site.register(StockItem, StockItemAdmin)