old_contents: from django.contrib import admin
  
  from .models import Item, ItemLoan
  
  
  @admin.register(Item)
  class ItemAdmin(admin.ModelAdmin):
      fieldsets = [
          (
              "Item",
              {
                  "fields": [
                      "name",
                      "stock",
                      "unknown_stock",
                      "description",
                      "thumbnail",
                      "location",
                  ]
              },
          ),
          (
              "Meta",
              {
                  "fields": [
                      "views",
                  ]
              },
          ),
      ]
      search_fields = [
          "name",
      ]
  
  
  class ItemLoanAdmin(admin.ModelAdmin):
      autocomplete_fields = ["approver"]
  
  
  admin.site.register(ItemLoan, ItemLoanAdmin)
  
new_contents: from django.contrib import admin
  
  from .models import Item, ItemLoan
  
  
  @admin.register(Item)
  class ItemAdmin(admin.ModelAdmin):
      fieldsets = [
          (
              "Item",
              {
                  "fields": [
                      "name",
                      "stock",
                      "unknown_stock",
                      "description",
                      "thumbnail",
                      "location",
                      "can_loan",
                      "max_loan_duration",
                  ]
              },
          ),
          (
              "Meta",
              {
                  "fields": [
                      "views",
                  ]
              },
          ),
      ]
      search_fields = [
          "name",
      ]
  
  
  class ItemLoanAdmin(admin.ModelAdmin):
      autocomplete_fields = ["approver"]
  
  
  admin.site.register(ItemLoan, ItemLoanAdmin)
  
subject: Update loan item admin fields