mirror of
https://github.com/Sosokker/Inventory-Management-System.git
synced 2025-12-19 15:34:04 +01:00
18 lines
628 B
Python
18 lines
628 B
Python
from django.contrib import admin
|
|
from inventory.models import Warehouse, Inventory, Item, Category
|
|
|
|
@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')
|
|
|
|
@admin.register(Category)
|
|
class CatergoryAdmin(admin.ModelAdmin):
|
|
list_display = ('name',) |