You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
399 B
8 lines
399 B
from django.contrib import admin
|
|
from .models import Inventory
|
|
|
|
@admin.register(Inventory)
|
|
class InventoryAdmin(admin.ModelAdmin):
|
|
list_display = ('product', 'warehouse', 'storage_location', 'actual_quantity', 'recorded_quantity', 'difference', 'inventory_date')
|
|
search_fields = ('product__name', 'warehouse__name', 'storage_location__name')
|
|
list_filter = ('warehouse', 'inventory_date') |