mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
15 lines
378 B
Python
15 lines
378 B
Python
from django.contrib import admin
|
|
|
|
from .models import Warehouse, StockItem
|
|
|
|
|
|
class WarehouseAdmin(admin.ModelAdmin):
|
|
list_display = ('name', 'path', 'description')
|
|
|
|
|
|
class StockItemAdmin(admin.ModelAdmin):
|
|
list_display = ('part', 'quantity', 'location', 'status', 'updated')
|
|
|
|
admin.site.register(Warehouse, WarehouseAdmin)
|
|
admin.site.register(StockItem, StockItemAdmin)
|