Browse Source

Merge branch 'save_as_admin_item' of Sim/coin into master

jocelyn 7 years ago
parent
commit
58f3a3310d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      hardware_provisioning/admin.py

+ 1 - 0
hardware_provisioning/admin.py

@@ -63,6 +63,7 @@ class ItemAdmin(admin.ModelAdmin):
         'designation', 'mac_address', 'serial',
         'designation', 'mac_address', 'serial',
         'owner__email', 'owner__nickname',
         'owner__email', 'owner__nickname',
         'owner__first_name', 'owner__last_name')
         'owner__first_name', 'owner__last_name')
+    save_as = True
     actions = ['give_back']
     actions = ['give_back']
 
 
     def give_back(self, request, queryset):
     def give_back(self, request, queryset):