change: change all admins
This commit is contained in:
@@ -5,4 +5,4 @@ from core.apps.wherehouse.models import InvalidProduct
|
||||
|
||||
@admin.register(InvalidProduct)
|
||||
class InvalidProductAdmin(admin.ModelAdmin):
|
||||
list_display = ['inventory', 'project_folder', 'amount', 'status']
|
||||
list_display = ['id', 'inventory', 'project_folder', 'amount', 'status']
|
||||
@@ -5,4 +5,4 @@ from core.apps.wherehouse.models.stock_movemend import StockMovemend
|
||||
|
||||
@admin.register(StockMovemend)
|
||||
class StockMovemendAdmin(admin.ModelAdmin):
|
||||
list_display = ['wherehouse_to', 'wherehouse_from', 'product', 'quantity', 'movemend_type']
|
||||
list_display = ['id','wherehouse_to', 'wherehouse_from', 'product', 'quantity', 'movemend_type']
|
||||
@@ -5,6 +5,6 @@ from core.apps.wherehouse.models.wherehouse import WhereHouse
|
||||
|
||||
@admin.register(WhereHouse)
|
||||
class WhereHouseAdmin(admin.ModelAdmin):
|
||||
list_display = ['name', 'address', 'branch']
|
||||
list_display = ['id','name', 'address', 'branch']
|
||||
search_fields = ['name', 'address']
|
||||
list_filter = ['branch']
|
||||
Reference in New Issue
Block a user