Lorian's requested filter by status; requires at least 2 status types.
[htsworkflow.git] / htsworkflow / frontend / inventory / admin.py
index 00e79fb9d2ba265f05f2ca2370ca00edf6833a6f..38b3fee024f568797b1c0e5970143cd6510e6fb2 100644 (file)
@@ -7,8 +7,16 @@ class ItemAdmin(admin.ModelAdmin):
     save_on_top = True
     list_display = ('uuid', 'barcode_id','item_type', 'item_info', 'location', 'force_use_uuid', 'creation_date')
     list_filter = (
-        'item_type',
+        'item_type', 'status'
     )
+    search_fields = [
+        'barcode_id',
+        'uuid',
+        'status__name',
+        'item_type__name',
+        'location__name',
+        'notes'
+    ]
 
 class ItemInfoAdmin(admin.ModelAdmin):
     save_as = True