old_contents: from django.contrib import admin
  from corehq.form_processor.models import XFormInstanceSQL, CommCareCaseSQL
  
  
  # note: these require ALLOW_FORM_PROCESSING_QUERIES = True in your localsettings.py to work
  @admin.register(XFormInstanceSQL)
  class XFormInstanceSQLAdmin(admin.ModelAdmin):
      date_hierarchy = 'received_on'
      list_display = ('form_id', 'domain', 'xmlns', 'user_id', 'received_on')
      list_filter = ('domain',)
      ordering = ('received_on',)
  
  
  @admin.register(CommCareCaseSQL)
  class CommCareCaseSQLAdmin(admin.ModelAdmin):
      date_hierarchy = 'server_modified_on'
      list_display = ('case_id', 'domain', 'type', 'name', 'server_modified_on')
      list_filter = ('domain', 'closed', 'type')
      ordering = ('server_modified_on',)
  
new_contents: from django.contrib import admin
  from corehq.form_processor.models import XFormInstanceSQL, CommCareCaseSQL, LedgerValue
  
  
  # note: these require ALLOW_FORM_PROCESSING_QUERIES = True in your localsettings.py to work
  @admin.register(XFormInstanceSQL)
  class XFormInstanceSQLAdmin(admin.ModelAdmin):
      date_hierarchy = 'received_on'
      list_display = ('form_id', 'domain', 'xmlns', 'user_id', 'received_on')
      list_filter = ('domain',)
      ordering = ('received_on',)
  
  
  @admin.register(CommCareCaseSQL)
  class CommCareCaseSQLAdmin(admin.ModelAdmin):
      date_hierarchy = 'server_modified_on'
      list_display = ('case_id', 'domain', 'type', 'name', 'server_modified_on')
      list_filter = ('domain', 'closed', 'type')
      ordering = ('server_modified_on',)
  
  
  @admin.register(LedgerValue)
  class LedgerValueAdmin(admin.ModelAdmin):
      date_hierarchy = 'last_modified'
      list_display = ('domain', 'section_id', 'case_id', 'entry_id', 'location_id', 'balance', 'last_modified')
      list_filter = ('domain', 'section_id', 'last_modified')
      ordering = ('last_modified',)
  
subject: add ledger value admin