Parcourir la source

Fix name on item filter by item type.

Filter is called "Type d'objet" instead of "nom", which is clearer.
Jocelyn Delalande il y a 6 ans
Parent
commit
1870fc3886
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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',
         'buy_date', 'deployed', 'is_available', 'storage')
     list_filter = (
-        AvailabilityFilter, 'type__name', 'storage',
+        AvailabilityFilter, 'type', 'storage',
         'buy_date', OwnerFilter)
     search_fields = (
         'designation', 'mac_address', 'serial',