Browse Source

Fix name on item filter by item type.

Filter is called "Type d'objet" instead of "nom", which is clearer.
Jocelyn Delalande 6 years ago
parent
commit
1870fc3886
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hardware_provisioning/admin.py

+ 1 - 1
hardware_provisioning/admin.py

@@ -62,7 +62,7 @@ class ItemAdmin(admin.ModelAdmin):
         'designation', 'type', 'mac_address', 'serial', 'owner',
         'designation', 'type', 'mac_address', 'serial', 'owner',
         'buy_date', 'deployed', 'is_available', 'storage')
         'buy_date', 'deployed', 'is_available', 'storage')
     list_filter = (
     list_filter = (
-        AvailabilityFilter, 'type__name', 'storage',
+        AvailabilityFilter, 'type', 'storage',
         'buy_date', OwnerFilter)
         'buy_date', OwnerFilter)
     search_fields = (
     search_fields = (
         'designation', 'mac_address', 'serial',
         'designation', 'mac_address', 'serial',