mirror of
https://github.com/Sosokker/Inventory-Management-System.git
synced 2025-12-20 16:04:03 +01:00
14 lines
522 B
Python
14 lines
522 B
Python
from django.contrib import admin
|
|
from inventory.models import Warehouse, Inventory, Item
|
|
|
|
@admin.register(Warehouse)
|
|
class WarehouseAdmin(admin.ModelAdmin):
|
|
list_display = ('name', 'address', 'have_freeze')
|
|
|
|
@admin.register(Inventory)
|
|
class InventoryAdmin(admin.ModelAdmin):
|
|
list_display = ('stock_identifier', 'warehouse', 'max_stock', 'min_stock', 'current_stock')
|
|
|
|
@admin.register(Item)
|
|
class ItemAdmin(admin.ModelAdmin):
|
|
list_display = ('name', 'description', 'category', 'weight', 'quantity', 'inventory') |