1
0
Parcourir la source

Typo: get_mac_or_serial instead of get_mac_and_serial, raise an error when creating a new member

SimonBoulier il y a 7 ans
Parent
commit
8545f768a9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      hardware_provisioning/admin.py

+ 1 - 1
hardware_provisioning/admin.py

@@ -167,7 +167,7 @@ class LoanInline(admin.TabularInline):
     model = Loan
     extra = 0
     exclude = ('notes',)
-    readonly_fields = ('item', 'get_mac_or_serial', 'loan_date', 'loan_date_end', 'is_running')
+    readonly_fields = ('item', 'get_mac_and_serial', 'loan_date', 'loan_date_end', 'is_running')
 
     show_change_link = True