old_contents: from django.contrib import admin
  from models import LoanAgreement, LoanItem, Client
  
  class LoanItemInline(admin.TabularInline):
      model = LoanItem
      raw_id_fields = ('item',)
  
  class ClientInline(admin.StackedInline):
      model = Client
  
  class LoanAgreementAdmin(admin.ModelAdmin):
      inlines = [
              LoanItemInline, ClientInline
      ]
      model = LoanAgreement
      raw_id_fields = ('approved_by', 'prepared_by',)
  
  
  admin.site.register(LoanAgreement, LoanAgreementAdmin)
  admin.site.register(Client)
  
new_contents: from django.contrib import admin
  from models import LoanAgreement, LoanItem, Client
  
  class LoanItemInline(admin.TabularInline):
      model = LoanItem
      raw_id_fields = ('item',)
  
  class ClientInline(admin.StackedInline):
      model = Client
  
  class LoanAgreementAdmin(admin.ModelAdmin):
      inlines = [
              LoanItemInline#, ClientInline
      ]
      model = LoanAgreement
      raw_id_fields = ('approved_by', 'prepared_by',)
  
  
  admin.site.register(LoanAgreement, LoanAgreementAdmin)
  admin.site.register(Client)
  
subject: Fix loanagreement admin page.