mirror of
https://github.com/Sosokker/Inventory-Management-System.git
synced 2025-12-19 15:34:04 +01:00
Register inventory model to admin
This commit is contained in:
parent
738a3a64e1
commit
a8add047d0
@ -1,3 +1,14 @@
|
||||
from django.contrib import admin
|
||||
from inventory.models import Warehouse, Inventory, Item
|
||||
|
||||
# Register your models here.
|
||||
@admin.register(Warehouse)
|
||||
class WarehouseAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'address', 'have_freeze')
|
||||
|
||||
@admin.register(Inventory)
|
||||
class InventoryAdmin(admin.ModelAdmin):
|
||||
list_display = ('warehouse', 'max_stock', 'min_stock', 'current_stock')
|
||||
|
||||
@admin.register(Item)
|
||||
class ItemAdmin(admin.ModelAdmin):
|
||||
list_display = ('inventory', 'name', 'description', 'category', 'weight', 'quantity')
|
||||
Loading…
Reference in New Issue
Block a user